Created
December 12, 2018 12:45
-
-
Save baghayi/7d1de782acce833d33ef69e9c8e012f6 to your computer and use it in GitHub Desktop.
Evand Advertising Campaign's Postman collection (V2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": [], | |
"info": { | |
"name": "Evand Advertising Campaign", | |
"_postman_id": "170efde0-459a-11eb-deb5-904b6db7e762", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Create a new campaign", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"description\": \"test\",\n\t\"event_id\": 1610,\n\t\"discount_code\": null,\n\t\"channel\" : \"email\",\n\t\"maximum_intended_receivers\" : 1,\n\t\"subject\": \"عنوان ایمی\",\n\t\"sender_name\" : \"Hossein baghayi\",\n\t\"send_date\": \"2018-10-01 12:00:00\",\n\t\"utm\" : \"?hello-world\"\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Add filter to a campaign", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/619/filters", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "[\n {\n \"filter_type\": \"evand_users\",\n \"filter_params\": {\n \"total_contact\": -1,\n \"provinces\": [\n 1\n ],\n \"categories\": [\n -1\n ]\n }\n },\n {\n \"filter_type\": \"subscribers\",\n \"filter_params\": {\n \"provinces\": [\n 1,\n 2\n ],\n \"categories\": [\n 1\n ]\n }\n }\n]\n" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "List Campaign Filters", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/619/filters", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Filter Statistics", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/filter-statistics", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"campaign_id\": 2,\n \"channel\": \"email\",\n \"filters\": [\n {\n \"filter_type\": \"evand_users\",\n \"filter_params\": {\n \"total_contact\": -1,\n \"provinces\": [\n 1\n ],\n \"categories\": [\n -1\n ]\n }\n },\n {\n \"filter_type\": \"subscribers\",\n \"filter_params\": {\n \"provinces\": [\n 1,\n 2\n ],\n \"categories\": [\n 1\n ]\n }\n }\n ]\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Test as campaign", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/125/test", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"contact_info\": \"baghayi.evand@gmai.com\"\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Alter Campaign State", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/112/state", | |
"method": "PUT", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"state\" : \"pending\"\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Copy Campaign", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/619", | |
"method": "COPY", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"description\": \"test\",\n\t\"event_id\": 11111,\n\t\"discount_code\": null,\n\t\"channel\" : \"email\",\n\t\"total_receivers\" : 1,\n\t\"subject\": \"عنوان ایمی\",\n\t\"sender_name1\" : \"Hossein baghayi\",\n\t\"send_date\": \"2018-10-01 12:00:00\",\n\t\"utm\" : \"?hello-world\",\n\t\"state\" : \"pending \"\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Update A Campaign", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/142", | |
"method": "PUT", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"description\": \"ttttt\",\n\t\"event_id\": null,\n\t\"discount_code\": null,\n\t\"channel\" : \"email\",\n\t\"maximum_intended_receivers\" : 100,\n\t\"subject\": \"عنوان ایمی\",\n\t\"sender_name\" : \"bala\",\n\t\"send_date\": \"2018-10-01 12:00:00\",\n\t\"utm\" : \"?hello-world\"\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Campaign Statistics", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns/569/statistics", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Accept", | |
"value": "application/x.evand.v1+json", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "Identifier-Token", | |
"value": "80767b0e-609f-4a32-a05b-08c638576c58", | |
"description": "", | |
"disabled": true | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\t\"contact_info\": \"valid_email@gmai.com\"\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Campaign List", | |
"request": { | |
"url": "http://api.evand.abc/advertising-campaigns", | |
"method": "GET", | |
"header": [ | |
{ | |
"key": "Authorization", | |
"value": "Bearer YOUR_TOKEN", | |
"description": "" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
} | |
], | |
"body": {}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment