29.14 OAUTH_SET_TOKEN Function

This function sets the OAuth Access token to be used in subsequence MAKE_REST_REQUEST calls. This procedure can be used to set a token which has been obtained by other means than with OAUTH_AUTHENTICATE (for instance, custom code).

Parameters

Table 29-8 OAUTH_SET_TOKEN Function Parameters

Parameter Description

p_token

The OAuth access token to be used by MAKE_REST_REQUEST calls.

p_expires

Optional: The token expiry date; NULL means: No expiration date.

Example

 begin
     apex_web_service.oauth_set_token(
         p_token =>   '{oauth access token}'
     );
 end;