Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 2: for OAuthRequest objects – PB Docs 2021 – PowerBuilder Library

Syntax 2: for OAuthRequest objects – PB Docs 2021

Syntax 2: for OAuthRequest objects

PowerScript function

Description

Gets the body into a string.

Applies to

OAuthRequest object

Syntax

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:

The following example shows the use of the GetBody function to get
the response body of string data type in encodingUTF8!:

The following example shows the use of the GetBody function to get
the response body of blob data type:

See also

ClearHeaders

GetHeader

GetHeaders

SetAccessToken

SetBody

SetHeader

SetHeaders


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x