Syntax 2: for OAuthRequest objects
PowerScript function
Description
Gets the body into a string.
Applies to
Syntax
|
1 |
objectname.GetBody ( string data ) |
|
1 |
objectname.GetBody ( blob data ) |
|
1 |
objectname.GetBody ( string data, encoding encodingType ) |
|
Argument |
Description |
|---|---|
|
objectname |
A reference to the OAuthRequest object in which you want |
|
data |
A string or blob variable into which the function |
|
encodingType |
An encoding value specifying the data which is converted |
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:
|
1 2 3 4 5 |
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!:
|
1 2 3 4 5 |
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:
|
1 2 3 4 5 |
int li_return blob lblb_data OAuthRequest lnv_OAuthRequest li_return = lnv_OAuthRequest.getbody(lblb_data) |
See also