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 |
|---|---|
|
|
The OAuth access token to be used by |
|
|
Optional: The token expiry date; NULL means: No expiration date. |
Example
begin
apex_web_service.oauth_set_token(
p_token => '{oauth access token}'
);
end;