Description
Sends a request to get the token information.
Applies to
OAuthClient objects
Syntax
objectname.AccessToken ( TokenRequest tokenRequest, TokenResponse tokenResponse )
| 
                                            
                               Argument  | 
                           
                                            
                               Description  | 
                        
|---|---|
| 
                                            
                               objectname  | 
                           
                                            
                               A reference to the OAuthClient object.  | 
                        
| 
                                            
                               tokenRequest  | 
                           A reference to the TokenRequest object specifying the request information. | 
| 
                                            
                               tokenResponse  | 
                           A reference to the TokenResponse object into which the function returns the object. | 
Return value
Integer.
Returns the value as follows. If any argument's value is null, the method returns null.
1 -- Success
-1 -- A general error occurred
-2 -- Invalid URL
-3 -- Cannot connect to the Internet
-4 -- Timeout
Examples
The following example shows the use of the AccessToken function to get the token information:
int li_return OAuthClient lnv_OAuthClient TokenRequest lnv_TokenRequest TokenResponse lnv_TokenResponse lnv_OAuthClient = create OAuthClient li_return = lnv_OAuthClient.accesstoken(lnv_TokenRequest, lnv_TokenResponse)
See also


