Endpoint advertising.lwa.token
validates the code returned from “Login with Amazon”. This method is only for internal usage for Shield.
AMALYZE Falcon API
advertising.lwa.token (POST)
Endpoint
Method
POST advertising.lwa.token
Example call
Shell
1 2 3 4 5 6 7 8 9 |
curl https://falcon.amalyze.com/<VERSION>/advertising.lwa.token \ -X POST \ -H "X-Falcon-Token: <YOUR-TOKEN-HERE>" \ -d ' { "code": "ANpJQOGYrAuLzrRMfYuE", "state": "U3pwQjJsWm5CTXVrYmp2TUVMUXdiR2ZxNFA5U2JhUk1HVlVobk1xUGVISEZDWmxCck52L1FsUmwwd3F6SXAzSlpkMVhNd0xTemNxNEZLVmtPeERSK3B4UnlYRWpLV0lhYktPOFVLWWJpdzh0K1QvL090Ylc0THFDM21qWHVKZmQ" } ' |
JSON Payload
JavaScript
1 2 3 4 |
{ "code": "ANpJQOGYrAuLzrRMfYuE", "state": "U3pwQjJsWm5CTXVrYmp2TUVMUXdiR2ZxNFA5U2JhUk1HVlVobk1xUGVISEZDWmxCck52L1FsUmwwd3F6SXAzSlpkMVhNd0xTemNxNEZLVmtPeERSK3B4UnlYRWpLV0lhYktPOFVLWWJpdzh0K1QvL090Ylc0THFDM21qWHVKZmQ" } |
Property | Type | Description | Further information |
code | string | The code passed to redirect from LWA | |
state | string | The state passed to redirect from LWA |
JSON Response
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "request": { "id": "708f6b29-0c41-4cd1-ba9a-4346a66fedf9", "took": 0.0571, "costs": 1, "remaining": 99999, "method": "research.product.general.get", "success": true, "error": { "code": null, "message": null, "hint": null } } } |
Property | Type | Description |
items | array | Array containing the product items (for more information see product object definition |
request | object | The request information object (see request information object definition for more information) |
Updates / Changes
Version | Description |