Owners Manual
RESTful Web Service | Actions and Adaptive CLI
OMNM 6.5.2 User Guide 623
TOKEN_END
URL:http://10.101.53.2:5000/v2.0/tenants
Method:GET
CAUTION:
Do not put lines between TOKEN_END and URL.
Execution Result:
NOTE:
The Job Viewer does not display credentials.
If you have already generated a token and saved it in cache, a Token Generation Action that refers
to that particular token by name uses the saved token. If any error exists in the Token Generation
Action, you may not notice that error in this execution. However, if you execute the same Token
Generation Action and the saved token has expired, it may trigger errors.
REST Call Requiring Base64-Encoded Authentication/Token
Retrieval
The following example script demonstrates a REST call that requires Base64 encoded
Authentication and Token retrieval. The subsequent REST call uses the Token retrieved and has a
JSON payload.
Example script:
TOKEN_BEGIN
TokenProperty:Authorization
TokenPrefix: Bearer
TokenAccessParams: access_token
TokenExpiryTime:1440
TokenAuthenticationType: base64
TokenAuthenticationID:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
URL:https://api.sandbox.paypal.com/v1/oauth2/token
RequestMethod:POST
grant_type=client_credentials
TOKEN_END
URL:https://api.sandbox.paypal.com/v1/payments/payment
RequestMethod:POST
{
"intent":"sale",
"payer":{