SetAccessToken

Description

Sets the access token.

Applies to

OAuthRequest objects

Syntax

objectname.SetAccessToken ( string accessToken )

Argument

Description

objectname

A reference to the OAuthRequest object in which you want to set the access token.

accessToken

A string specifying the access token.


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 SetAccessToken function to set the access token:

int li_return
string ls_accesstoken
OAuthRequest lnv_OAuthRequest

li_return = lnv_OAuthRequest.setaccesstoken(ls_accesstoken)

See also

ClearHeaders

GetBody

GetHeader

GetHeaders

SetBody

SetHeader

SetHeaders