Endpoint advertising.lwa.authorize
generates the authoriation URL for „Login with Amazon“. This method is only for internal usage for Shield.
AMALYZE Falcon API
advertising.lwa.authorize (POST)
Endpoint
Method
POST advertising.lwa.authorize
Example call
Shell
1 2 3 4 5 6 7 8 |
curl https://falcon.amalyze.com/<VERSION>/advertising.lwa.authorize \ -X POST \ -H "X-Falcon-Token: <YOUR-TOKEN-HERE>" \ -d ' { "redirect": "http://localhost:4200/advertising/lwa/grant" } ' |
JSON Payload
JavaScript
1 2 3 |
{ "redirect": "http://localhost:4200/advertising/lwa/grant" } |
Property | Type | Description | Further information |
redirect | string | The URL, the user shall be redirected after successfull authentication | Valid options are:
|
JSON Response
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "url": "https:\/\/www.amazon.com\/ap\/oa?client_id=amzn1.application-oa2-client.52f8d82761124b3f91b09ed5916616ae&scope=cpc_advertising%3Acampaign_management+profile+profile%3Auser_id+postal_code&response_type=code&state=akNMSmFhQUl4QzUzK21zdVJJZkxndz09&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fadvertising%2Flwa%2Fgrant", "request": { "id": "ea208dd9-6ec9-4b34-ba97-0dd812f09c9d", "took": 0.0212, "costs": 0, "remaining": 100000, "method": "advertising.lwa.authorize", "success": true, "error": { "code": null, "message": null, "hint": null } } } |
Property | Type | Description |
url | array | String containing the URL the user shall be redirected when clicking the "Login with Amazon" Button |
request | object | The request information object (see request information object definition for more information) |
Updates / Changes
Version | Description |