GetHeaders

Syntax 1: for TokenRequest objects

Description

Gets the header of all requests.

Applies to

TokenRequest objects

Syntax

objectname.GetHeaders ( )

Argument

Description

objectname

A reference to the TokenRequest object in which you want to get the request header.


Return value

String.

Returns the header information of all requests. If any argument's value is null, the method returns null.

Examples

The following example shows the use of the GetHeaders function to get the value of all headers:

string ls_headers
TokenRequest lnv_TokenRequest

ls_headers = lnv_TokenRequest.getheaders()

See also

AppendParam

ClearHeaders

GetHeader

SetHeader

SetHeaders

Syntax 2: for TokenResponse objects

Description

Gets the header of all responses.

Applies to

TokenResponse objects

Syntax

objectname.GetHeaders ( )

Argument

Description

objectname

A reference to the TokenResponse object in which you want to get the response header.


Return value

String.

Returns the header information of all responses.

Examples

The following example shows the use of the GetHeaders function to get the value of all headers:

string ls_headers
TokenResponse lnv_TokenResponse

ls_headers = lnv_TokenResponse.getheaders()

See also

GetAccessToken

GetBody

GetExpiresIn

GetHeader

GetRefreshToken

GetStatusCode

GetStatusText

GetTokenError

GetTokenType

Syntax 3: for OAuthRequest objects

Description

Gets the header of all requests.

Applies to

OAuthRequest objects

Syntax

objectname.GetHeaders ( )

Argument

Description

objectname

A reference to the OAuthRequest object in which you want to get the request header.


Return value

String.

Returns the header information of all requests. If any argument's value is null, the method returns null.

Examples

The following example shows the use of the GetHeaders function to get the value of all headers:

string ls_headers
OAuthRequest lnv_OAuthRequest

ls_headers = lnv_OAuthRequest.getheaders()

See also

ClearHeaders

GetBody

GetHeader

SetAccessToken

SetBody

SetHeader

SetHeaders

Syntax 4: for ResourceResponse objects

Description

Gets the header of all responses.

Applies to

ResourceResponse objects

Syntax

objectname.GetHeaders ( )

Argument

Description

objectname

A reference to the ResourceResponse object in which you want to get the response header.


Return value

String.

Returns the header information of all responses.

Examples

The following example shows the use of the GetHeaders function to get the value of all headers:

string ls_headers
ResourceResponse lnv_ResourceResponse

ls_headers = lnv_ResourceResponse.getheaders()

See also

GetBody

GetHeader

GetStatusCode

GetStatusText