Users Guide
RESTful Web Service | Actions and Adaptive CLI
630 OMNM 6.5.3 User Guide
Sample scripts that combine token generation and execution in one action
TOKEN_BEGIN
TokenProperty: X-Auth-Token
TokenAccessParams: tokenId
TokenExpiryTime: 86400
URL:http://192.168.53.50:8089/rest/auth/
Method:POST
{ "username" : "admin", "password" : "admin" }
TOKEN_END
URL: http://localhost:8089/rest/workorderdefs/
Method:GET
This is a functioning script with changed values for TokenAuthenticationID
TOKEN_BEGIN
TokenProperty:Authorization
TokenPrefix: Bearer
TokenAccessParams: access_token
TokenExpiryTime:1440
TokenAuthenticationType: base64
TokenAuthenticationID:AQ6pmxAg:14VJ8Y6fA
URL:https://api.sandbox.paypal.com/v1/oauth2/token
Method:POST
grant_type=client_credentials
TOKEN_END
URL:https://api.sandbox.paypal.com/v1/payments/payment
Method:POST
{
"intent":"sale",
"payer":{
"payment_method":"credit_card",
"funding_instruments":[
{
"credit_card":{
"number":"55555555550331",
"type":"visa",
"expire_month":11,
"expire_year":2018,
"cvv2":"874",
"first_name":"Betsy",
"last_name":"Buyer",
"billing_address":{ "line1":"111 First Street", "city":"Saratoga",
"state":"CA", "postal_code":"95070", "country_code":"US" }
}
}