Description
Gets the response body into a string.
Applies to
TokenResponse objects
Syntax
objectname.GetBody ( string data )
Argument |
Description |
---|---|
objectname |
A reference to the TokenResponse object in which you want to get the response body. |
data |
A string variable into which the function returns data. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, the method returns null.
Examples
The following example shows the use of the GetBody function to get the response body:
int li_return string ls_data TokenResponse lnv_tokenResponse li_return = lnv_tokenResponse.getbody(ls_data)
See also
Description
Gets the body into a string.
Applies to
OAuthRequest objects
Syntax
objectname.GetBody ( string data )
objectname.GetBody ( blob data )
objectname.GetBody ( string data, encoding encodingType )
Argument |
Description |
---|---|
objectname |
A reference to the OAuthRequest object in which you want to get the body. |
data |
A string or blob variable into which the function returns data. The following data encodings are supported: EncodingANSI!, EncodingUTF8!, EncodingUTF16LE! and EncodingUTF16BE!. |
encodingType |
An encoding value specifying the data which is converted to EncodingUTF16LE!. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, the method returns null.
Examples
The following example shows the use of the GetBody function to get the response body of string data type:
int li_return string ls_data OAuthRequest lnv_OAuthRequest li_return = lnv_OAuthRequest.getbody(ls_data)
The following example shows the use of the GetBody function to get the response body of string data type in encodingUTF8!:
int li_return string ls_data OAuthRequest lnv_OAuthRequest li_return = lnv_OAuthRequest.getbody(ls_data, encodingUTF8!)
The following example shows the use of the GetBody function to get the response body of blob data type:
int li_return blob lblb_data OAuthRequest lnv_OAuthRequest li_return = lnv_OAuthRequest.getbody(lblb_data)
See also
Description
Gets the response body into a string.
Applies to
ResourceResponse objects
Syntax
objectname.GetBody ( string data )
objectname.GetBody ( blob data )
objectname.GetBody ( string data, encoding encodingType )
Argument |
Description |
---|---|
objectname |
A reference to the ResourceResponse object in which you want to get the response body. |
data |
A string or blob variable into which the function returns data. The following data encodings are supported: EncodingANSI!, EncodingUTF8!, EncodingUTF16LE! and EncodingUTF16BE!. |
encodingType |
An encoding value specifying the data which is converted to EncodingUTF16LE!. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, the method returns null.
Examples
The following example shows the use of the GetBody function to get the response body of string data type:
int li_return string ls_data ResourceResponse lnv_ResourceResponse li_return = lnv_ResourceResponse.getbody(ls_data)
The following example shows the use of the GetBody function to get the response body of string data type in encodingUTF8!:
int li_return string ls_data ResourceResponse lnv_ResourceResponse li_return = lnv_ResourceResponse.getbody(ls_data, encodingUTF8!)
The following example shows the use of the GetBody function to get the response body of blob data type:
int li_return blob lblb_data ResourceResponse lnv_ResourceResponse li_return = lnv_ResourceResponse.getbody(lblb_data)
See also