{ "info": { "_postman_id": "72332e87-55d8-6c99-63c1-4d3d3c548117", "name": "L749 : Target API", "description": "A collection for Target API Demo. Executes the following steps:\n1. Create an HTML Offer\n2. Create an A/B Test using the offer created in 1 and a AAM segment\n3. Deliver the test using Server Side Delivery API\n . Validate in reports that a visit has been recorded\n4. Request the same test using the Batch Delivery API\n . Note that you are using a different session ID\n5. Make another request for recording a visit\n . Validate in reports that a visit has been recorded\n6. Use Server Side Delivery API for recommendations\n . Validate in reports that a visit has been logged", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Authentication", "description": "Authenticate to Adobe.io", "item": [ { "name": "Exchange JWT for Access token", "event": [ { "listen": "test", "script": { "id": "6ecfc113-81a4-4111-9752-ac1c9bf51359", "type": "text/javascript", "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"io_access_token\", jsonData.access_token);" ] } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://ims-na1.adobelogin.com/ims/exchange/jwt/?client_id={{io_api_key}}&client_secret={{io_client_secret}}&jwt_token={{io_jwt_token}}", "protocol": "https", "host": [ "ims-na1", "adobelogin", "com" ], "path": [ "ims", "exchange", "jwt", "" ], "query": [ { "key": "client_id", "value": "{{io_api_key}}" }, { "key": "client_secret", "value": "{{io_client_secret}}" }, { "key": "jwt_token", "value": "{{io_jwt_token}}" } ] } }, "response": [] } ] }, { "name": "Create Offers and Activity", "description": "Create Target Offers and an A/B Activity", "item": [ { "name": "Create HTML Offer - Default", "event": [ { "listen": "test", "script": { "id": "34c7d47e-8cfe-403c-b300-62652d1fc7e6", "type": "text/javascript", "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"target_offer_default\", jsonData.id);" ] } } ], "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{io_access_token}}" }, { "key": "X-Api-Key", "value": "{{io_api_key}}" }, { "key": "Content-Type", "value": "application/vnd.adobe.target.v1+json" } ], "body": { "mode": "raw", "raw": " {\n \"name\": \"Demo HTML Offer\",\n \"content\": \"