CURL commands
The sample curl commands below highlights example values and data format for various API calls. These can be used as a reference in case you are having trouble with using a particular API in your preferred programming language. These curl commands with appropriate substitution of values can also be executed from a shell that has access to command-line curl.
Please make sure to obtain the below values from UI as directed
1. API key which is required for API calls in Authorization: Bearer<API Key > format. 2. Application Id. 3.company Id
Send a Plain TEXT Message
Create message
$ curl 'https://exchange-prod-g.2mee.com/notification/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA' -d '{"appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16","title" : "Title of the Message", "subtitle" : "SubTitle of the Message","text" : "Body of the Message", "action" : "Open", "fbTitle" : "FallBack Title of the Message", "fbSubtitle" : "Fallback SubTitle of the Message", "fbText" : "FallBack Text of the Message", "expiry" : 1440,"playTime" : 1582614107682,"about" : [], "filterId" : "f5242ddb-a468-4797-9fda-2d0eca5564dc","priority" : "LOW","favourite" : 0,"type" : "TEXT", "channel" : "PUSH"}'
{
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"title":"Title of the Message",
"subtitle":"SubTitle of the Message",
"text":"Body of the Message",
"action":"Open","fbTitle":"FallBack Title of the Message",
"fbSubtitle":"Fallback SubTitle of the Message",
"fbText":"FallBack Text of the Message",
"expiry":1440,
"playTime":1582614107682,
"about":[],
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority":"LOW",
"favourite":0,
"type":"TEXT",
"channel":"PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment":null,
"subType":"T",
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state":"NEW",
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle":null,
"url":null,
"id":"358281e8-ac30-4dc2-864b-2c5438977d96",
"size":null,
"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603198753903,
"webActive":null
}
Schedule Notification
$ curl 'https://exchange-prod-g.2mee.com/notification/schedule?id=358281e8-ac30-4dc2-864b-2c5438977d96' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
{
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"title":"Title of the Message",
"subtitle":"SubTitle of the Message",
"text":"Body of the Message",
"action":"Open","fbTitle":"FallBack Title of the Message",
"fbSubtitle":"Fallback SubTitle of the Message",
"fbText":"FallBack Text of the Message",
"expiry":1440,
"playTime":1582614107682,
"about":[],
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority":"LOW",
"favourite":0,
"type":"TEXT",
"channel":"PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment":null,
"subType":"T",
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state":"NEW",
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle":null,
"url":null,
"id":"358281e8-ac30-4dc2-864b-2c5438977d96",
"size":null,
"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603198753903,
"webActive":null
}
Send a RICH TEXT Message
Create Notification
$ curl 'https://exchange-prod-g.2mee.com/notification/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA' -d '{ "appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16", "title" : "Title of the Message","subtitle" : "SubTitle of the Message", "text" : "Body of the Message", "action" : "Open", "fbTitle" : "FallBack Title of the Message", "fbSubtitle" : "Fallback SubTitle of the Message","fbText" : "FallBack Text of the Message", "expiry" : 1440, "playTime" : 1582614107682, "about" : [], "filterId" : "9e862fc2-e3b6-4420-bf63-80ad4368ec88", "priority" : "LOW", "favourite" : 0, "type" : "TEXT", "channel" : "PUSH" }'
{
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"title":"Title of the Message",
"subtitle":"SubTitle of the Message",
"text":"Body of the Message",
"action":"Open","fbTitle":"FallBack Title of the Message",
"fbSubtitle":"Fallback SubTitle of the Message",
"fbText":"FallBack Text of the Message",
"expiry":1440,
"playTime":1582614107682,
"about":[],
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority":"LOW",
"favourite":0,
"type":"TEXT",
"channel":"PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment":null,
"subType":"T",
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state":"NEW",
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle":null,
"url":null,
"id":"358281e8-ac30-4dc2-864b-2c5438977d96",
"size":null,
"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603198753903,
"webActive":null
}
Add Rich Content2
$ curl 'https://exchange-prod-g.2mee.com/notification/update' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA' -d '{"id" : "f4769c89-939b-4521-9435-5b3ce49d8fdb","title" : "Updated Title of the Message","subtitle" : "SubTitle of the Message", "text" : "Body of the Message", "action" : "Open","fbTitle" : "updated FallBack Title of the Message", "fbSubtitle" : "updated Fallback SubTitle of the Message", "fbText" : "FallBack Text of the Message","expiry" : 1440, "playTime" :1582614107682,"about" : [],"filterId" : "f5242ddb-a468-4797-9fda-2d0eca5564dc", "priority" : "LOW","favourite" : 0}'
{
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"title": "Updated Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "updated FallBack Title of the Message",
"fbSubtitle": "updated Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582614107682,
"about": [],
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority": "LOW",
"favourite": 0,
"type": "TEXT",
"channel": "PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment": null,
"subType": "I",
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state": "NEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle": null,
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8cd03336-9f01-4442-8547-96ce89777968_c367b4ce-d777-4ea8-9427-b6fcf896ab7d.jpeg",
"id": "358281e8-ac30-4dc2-864b-2c5438977d96",
"size": 8873,
"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603198753903,
"webActive":null
}
Schedule Notification
curl -X POST "https://exchange-prod-g.2mee.com/notification/schedule?id=358281e8-ac30-4dc2-864b-2c5438977d96" -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA" -H "accept: */*" | jq '.'
{
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"title": "Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "FallBack Title of the Message",
"fbSubtitle": "Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582614107682,
"about": [],
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority": "LOW",
"favourite": 0,
"type": "TEXT",
"channel": "PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment": null,
"subType": "I",
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state": "NEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle": null,
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8cd03336-9f01-4442-8547-96ce89777968_c367b4ce-d777-4ea8-9427-b6fcf896ab7d.jpeg",
"id": "358281e8-ac30-4dc2-864b-2c5438977d96",
"size": 8873,
"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603198753903,
"webActive":null
}
Send a HoloPush
Create Notification
$ curl 'https://exchange-prod-g.2mee.com/notification/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA' -d '{"appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16","title" : "Title of the Message","subtitle" : "SubTitle of the Message","text" : "Body of the Message","action" : "Open", "fbTitle" : "FallBack Title of the Message", "fbSubtitle" : "Fallback SubTitle of the Message","fbText" : "FallBack Text of the Message","expiry" : 1440,"playTime" : 1582614107682,"about" : [],"filterId" : "f5242ddb-a468-4797-9fda-2d0eca5564dc","priority" : "LOW","favourite" : 0, "type" : "HOLOPUSH", "channel" : "PUSH"}'
{
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"title":"Title of the Message",
"subtitle":"SubTitle of the Message",
"text":"Body of the Message",
"action":"Open",
"fbTitle":"FallBack Title of the Message",
"fbSubtitle":"Fallback SubTitle of the Message",
"fbText":"FallBack Text of the Message",
"expiry":1440,
"playTime":1582614107682,
"about":[],
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority":"LOW",
"favourite":0,
"type":"HOLOPUSH",
"channel":"PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment":null,
"subType":null,
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state":"NEW",
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle":null,
"url":null,
"id":"91f0d2d6-1898-4538-98c8-ee12796d0ac5",
"size":null,
"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603199790325,
"webActive":null
}
Create Job
$ curl 'https://exchange-prod-g.2mee.com/job/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA' -d '{"title" : "Title for the Message", "description" : "Message Description", "holoPushLevel" : "TORSO", "dueDate" : 1582613760565, "artistDueDate" : 1582613760565, "artist" : "dan.kersley@2mee.com", "appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16", "favourite" : 0, "script" : "Message Script", "isStock" : 0, "notificationId" : "91f0d2d6-1898-4538-98c8-ee12796d0ac5", "jobType" :"HOLOPUSH" }'
{
"id":"8d552bf9-438a-4855-8216-7ea624967fb1",
"title":"Title for the Message",
"description":"Message Description",
"holoPushLevel":"TORSO",
"dueDate":1582613760565,
"artist":"dan.kersley@2mee.com",
"artistDueDate":1582613760565,
"script":"Message Script",
"creator":"testingteam@2mee.com",
"favourite":0,
"filterId":null,
"isStock":0,
"state":"NEW",
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"appName":null,
"campaignId":null,
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"artistName":"Dan Kersley",
"history":null,"
tags":null,
"take":null,
"creatorName":"Jennifer Riley",
"segment":null,
"notificationId":"91f0d2d6-1898-4538-98c8-ee12796d0ac5",
"jobType":"HOLOPUSH",
"lastNudgeTime":null
}
Assign Job to Artist
$ curl 'https://exchange-prod-g.2mee.com/job/executeJob?id=8d552bf9-438a-4855-8216-7ea624967fb1' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
{
"id":"8d552bf9-438a-4855-8216-7ea624967fb1",
"title":"Title for the Message",
"description":"Message Description",
"holoPushLevel":"TORSO",
"dueDate":"2020-02-25",
"artist":"dan.kersley@2mee.com",
"artistDueDate":"2020-02-25",
"script":"Message Script",
"creator":"testingteam@2mee.com",
"favourite":0,
"filterId":null,
"isStock":0,"
state":"EXECUTE",
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"appName":"2Mee Demo",
"campaignId":null,
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"artistName":"Dan Kersley",
"history":
[
{
"created":1603200077000,
"updated":1603200077000,
"id":67823,
"jobId":"8d552bf9-438a-4855-8216-7ea624967fb1",
"comment":null,
"defaultComment":" created this message.",
"creator":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName":"Jennifer Riley"
}
],
"tags":[],
"take":null,
"creatorName":"Jennifer Riley",
"segment":null,
"notificationId":"91f0d2d6-1898-4538-98c8-ee12796d0ac5",
"jobType":"HOLOPUSH",
"lastNudgeTime":null
}
Wait for the artist to submit the recording
List Artist's Submission
$ curl 'https://exchange-prod-g.2mee.com/submission/list?jobId=8d552bf9-438a-4855-8216-7ea624967fb1' -i -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
[
{
"id": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"state": "NEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"comments": null,
"fileCount": 0,
"created": 1603181477000,
"updated": 1603181477000,
"takes": [
{
"created": 1603181568000,
"updated": 1603181568000,
"id": "34c38d7a-a504-4fa2-b23b-5d1084401531",
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"state": "NEW",
"fileName": "8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"submission": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"duration": null,
"seekTime": 0.14500001072883606,
"pngUrl": null,
"stockId": null
}
]
}
]
Facee select
$ curl 'https://exchange-prod-g.2mee.com/holoPush/select?file_id=34c38d7a-a504-4fa2-b23b-5d1084401531' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
[
{
"id": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"state": "NEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"comments": null,
"fileCount": 0,
"created": 1603181477000,
"updated": 1603181477000,
"takes": [
{
"created": 1603181568000,
"updated": 1603201444285,
"id": "34c38d7a-a504-4fa2-b23b-5d1084401531",
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"state": "SELECTED",
"fileName": "8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"submission": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"duration": null,
"seekTime": 0.14500001072883606,
"pngUrl": null,
"stockId": null
}
]
}
]
Accept a Submission
$ curl 'https://exchange-prod-g.2mee.com/job/accept?id=8d552bf9-438a-4855-8216-7ea624967fb1' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
{
"id": "8d552bf9-438a-4855-8216-7ea624967fb1",
"title": "Title for the Message",
"description": "Message Description",
"holoPushLevel": "TORSO",
"dueDate": "2020-02-25",
"artist": "dan.kersley@2mee.com",
"artistDueDate": "2020-02-25",
"script": "Message Script",
"creator": "testingteam@2mee.com",
"favourite": 0,
"filterId": null,
"isStock": 0,
"state": "ACCEPTED",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"appName": "2Mee Demo",
"campaignId": null,
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"artistName": "Dan Kersley",
"history": [
{
"created": 1603180277000,
"updated": 1603180277000,
"id": 67823,
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"comment": null,
"defaultComment": " created this message.",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
},
{
"created": 1603180395000,
"updated": 1603180395000,
"id": 67824,
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"comment": null,
"defaultComment": " assigned this message to Dan Kersley ",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
},
{
"created": 1603181479000,
"updated": 1603181479000,
"id": 67825,
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"comment": null,
"defaultComment": " created submission for this message.",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
},
{
"created": 1603181715000,
"updated": 1603181715000,
"id": 67826,
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"comment": null,
"defaultComment": " submitted submission for this message with 1 recordings.",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
}
],
"tags": [],
"take": {
"created": 1603181568000,
"updated": 1603201585297,
"id": "34c38d7a-a504-4fa2-b23b-5d1084401531",
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"state": "SELECTED",
"fileName": "91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"submission": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"duration": null,
"seekTime": 0.14500001072883606,
"pngUrl": null,
"stockId": null
},
"creatorName": "Jennifer Riley",
"segment": null,
"notificationId": "91f0d2d6-1898-4538-98c8-ee12796d0ac5",
"jobType": "HOLOPUSH",
"lastNudgeTime": null
}
Schedule Notification
$ curl 'https://exchange-prod-g.2mee.com/notification/schedule?id=91f0d2d6-1898-4538-98c8-ee12796d0ac5' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
{
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"title": "Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "FallBack Title of the Message",
"fbSubtitle": "Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582574507000,
"about": [],
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority": "LOW",
"favourite": 0,
"type": "HOLOPUSH",
"channel": "PUSH",
"template": 0,
"feature": null,
"webTopic": null,
"segment": {
"name": "All Users",
"type": "DEFAULT",
"count": null
},
"subType": null,
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state": "SCHEDULED",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle": null,
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
"id": "91f0d2d6-1898-4538-98c8-ee12796d0ac5",
"size": null,
"tags": [],
"parentMessageId": null,
"holoPushAd": null,
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
"holoPushUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1h265.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.webm",
"created": 1603179990000,
"webActive": null
}
Send a HoloPush With Ad and Ad button (Deprecated)
Create Notification
$ curl 'https://exchange-prod-g.2mee.com/notification/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA' -d '{ "appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16", "title" : "Title of the Message", "subtitle" : "SubTitle of the Message", "text" : "Body of the Message", "action" : "Open","fbTitle" : "FallBack Title of the Message","fbSubtitle" : "Fallback SubTitle of the Message","fbText" : "FallBack Text of the Message", "expiry" : 1440, "playTime" : 1582614107682, "about" : [], "filterId" : "f5242ddb-a468-4797-9fda-2d0eca5564dc","priority" : "LOW", "favourite" : 0,"type" : "HOLOPUSH","channel" : "PUSH"}'
{
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"title":"Title of the Message",
"subtitle":"SubTitle of the Message",
"text":"Body of the Message",
"action":"Open",
"fbTitle":"FallBack Title of the Message",
"fbSubtitle":"Fallback SubTitle of the Message",
"fbText":"FallBack Text of the Message",
"expiry":1440,
"playTime":1582614107682,
"about":[],
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority":"LOW",
"favourite":0,
"type":"HOLOPUSH",
"channel":"PUSH",
"template":0,
"feature":null,
"webTopic":null,
"segment":null,
"subType":null,
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state":"NEW",
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle":null,
"url":null,
"id":"f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"size":null,"tags":null,
"parentMessageId":null,
"holoPushAd":null,
"jobId":null,
"holoPushUrl":null,
"created":1603203954254,
"webActive":null
}
Create Job
$ curl 'https://exchange-prod-g.2mee.com/job/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA' -d '{"title" : "Title for the Message", "description" : "Message Description", "holoPushLevel" : "TORSO", "dueDate" : 1582613760565, "artistDueDate" : 1582613760565,"artist" : "dan.kersley@2mee.com", "appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16", "favourite" : 0, "script" : "Message Script", "isStock" : 0, "notificationId" : "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1", "jobType" :"HOLOPUSH" }'
{
"id":"3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"title":"Title for the Message",
"description":"Message Description",
"holoPushLevel":"TORSO",
"dueDate":1582613760565,
"artist":"dan.kersley@2mee.com",
"artistDueDate":1582613760565,
"script":"Message Script",
"creator":"testingteam@2mee.com",
"favourite":0,
"filterId":null,
"isStock":0,
"state":"NEW",
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"appName":null,
"campaignId":null,
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"artistName":"Dan Kersley",
"history":null,
"tags":null,
"take":null,
"creatorName":"Jennifer Riley",
"segment":null,
"notificationId":"f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"jobType":"HOLOPUSH",
"lastNudgeTime":null
}
Assign Job to Artist
$ curl 'https://exchange-prod-g.2mee.com/job/executeJob?id=3ac7423b-02f0-4265-90cd-a6f15ac1ffe4' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
{
"id":"3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"title":"Title for the Message",
"description":"Message Description",
"holoPushLevel":"TORSO",
"dueDate":"2020-02-25",
"artist":"dan.kersley@2mee.com",
"artistDueDate":"2020-02-25",
"script":"Message Script",
"creator":"testingteam@2mee.com",
"favourite":0,
"filterId":null,
"isStock":0,
"state":"EXECUTE",
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
"appName":"2Mee Demo",
"campaignId":null,
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
"artistName":"Dan Kersley",
"history":[
{
"created":1603204097000,
"updated":1603204097000,
"id":67834,"jobId":"3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"comment":null,
"defaultComment":" created this message.",
"creator":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName":"Jennifer Riley"
}
],
"tags":[],
"take":null,
"creatorName":"Jennifer Riley",
"segment":null,
"notificationId":"f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"jobType":"HOLOPUSH",
"lastNudgeTime":null
}
Wait for Artist's submission
List Artist's Submission
$ curl 'https://exchange-prod-g.2mee.com/submission/list?jobId=3ac7423b-02f0-4265-90cd-a6f15ac1ffe4' -i -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
[
{
"id": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"state": "NEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"comments": null,
"fileCount": 0,
"created": 1603184519000,
"updated": 1603184519000,
"takes": [
{
"created": 1603184563000,
"updated": 1603184589000,
"id": "b6fe45a9-a0b0-47c6-9912-fff9c4486db8",
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"state": "SELECTED",
"fileName": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"submission": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"duration": null,
"seekTime": 0.14500001072883606,
"pngUrl": null,
"stockId": null
}
]
}
]
HoloPush select
$ curl 'https://exchange-prod-g.2mee.com/holoPush/select?file_id=b6fe45a9-a0b0-47c6-9912-fff9c4486db8' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
[
{
"id": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"state": "REVIEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"comments": null,
"fileCount": 0,
"created": 1603184519000,
"updated": 1603204502406,
"takes": [
{
"created": 1603184563000,
"updated": 1603204500360,
"id": "b6fe45a9-a0b0-47c6-9912-fff9c4486db8",
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"state": "SELECTED",
"fileName": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"submission": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"duration": null,
"seekTime": 0.14500001072883606,
"pngUrl": null,
"stockId": null
}
]
}
]
Accept a Submission
$ curl 'https://exchange-prod-g.2mee.com/job/accept?id=64c49d77-d5d0-4faf-bcb1-2c7888366692' -i -X POST -H 'Authorization: BearereyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
{
"id": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"title": "Title for the Message",
"description": "Message Description",
"holoPushLevel": "TORSO",
"dueDate": "2020-02-25",
"artist": "dan.kersley@2mee.com",
"artistDueDate": "2020-02-25",
"script": "Message Script",
"creator": "testingteam@2mee.com",
"favourite": 0,
"filterId": null,
"isStock": 0,
"state": "ACCEPTED",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"appName": "2Mee Demo",
"campaignId": null,
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"artistName": "Dan Kersley",
"history": [
{
"created": 1603184297000,
"updated": 1603184297000,
"id": 67834,
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"comment": null,
"defaultComment": " created this message.",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
},
{
"created": 1603184398000,
"updated": 1603184398000,
"id": 67835,
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"comment": null,
"defaultComment": " assigned this message to Dan Kersley ",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
},
{
"created": 1603184522000,
"updated": 1603184522000,
"id": 67836,
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"comment": null,
"defaultComment": " created submission for this message.",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
},
{
"created": 1603184803000,
"updated": 1603184803000,
"id": 67837,
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"comment": null,
"defaultComment": " submitted submission for this message with 1 recordings.",
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"creatorName": "Jennifer Riley"
}
],
"tags": [],
"take": {
"created": 1603184563000,
"updated": 1603204675610,
"id": "b6fe45a9-a0b0-47c6-9912-fff9c4486db8",
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"state": "SELECTED",
"fileName": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"submission": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"duration": null,
"seekTime": 0.14500001072883606,
"pngUrl": null,
"stockId": null
},
"creatorName": "Jennifer Riley",
"segment": null,
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"jobType": "HOLOPUSH",
"lastNudgeTime": null
}
Upload FaceAd
$ curl 'https://exchange-prod-g.2mee.com/notification/holoAd/upload?notificationId=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1&position=bl' -i -X POST -H 'Authorization: BearereyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA"-H "accept: */*" -H "Content-Type: multipart/form-data" -F "file=@/Users/shrinidhidurairaj/Downloads/Image.jpeg" | jq '.'
{
"created": 1603184154000,
"updated": 1603184883000,
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"title": "Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "FallBack Title of the Message",
"fbSubtitle": "Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582574507000,
"about": [],
"type": "HOLOPUSH",
"subType": null,
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"state": "NEW",
"priority": "LOW",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"favourite": 0,
"tags": [],
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"parentMessageId": null,
"holoPushAd": {
"created": 1603204851396,
"updated": 1603204851396,
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
"holoPushWithAdUrl": null,
"holoPushAdPosition": "bl",
"buttonUrl": null,
"buttonText": null,
"customButton": 0
},
"size": null,
"channel": "PUSH",
"holoPushUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1h265.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.webm",
"abTestId": null,
"template": 0,
"feature": null,
"webTopic": null,
"webEventId": null,
"webActive": null
}
Merge FaceAd
curl 'https://exchange-prod-g.2mee.com/notification/holoAd/merge?id=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1&position=tl' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA'
{
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"title": "Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "FallBack Title of the Message",
"fbSubtitle": "Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582574507000,
"about": [],
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
"priority": "LOW",
"favourite": 0,
"type": "HOLOPUSH",
"channel": "PUSH",
"template": 0,
"feature": null,
"webTopic": null,
"segment": null,
"subType": null,
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state": "NEW",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle": null,
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"size": null,
"tags": [],
"parentMessageId": null,
"holoPushAd": {
"created": 1603185051000,
"updated": 1603204974588,
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
"holoPushWithAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1_facead.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1_facead.webm",
"holoPushAdPosition": "tl",
"buttonUrl": null,
"buttonText": null,
"customButton": 0
},
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"holoPushUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1h265.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.webm",
"created": 1603184154000,
"webActive": null
}
Upload FaceAD Button
$ curl 'https://exchange-prod-g.2mee.com/notification/holoAd/button/upload?notificationId=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1&text=Open&customButton=1' -i -X POST -H 'Content-Type: multipart/form-data' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA' -F 'file=@6fec7453-04bf-44a6-a2a9-f7f3ecaca1b9_6df32106-236f-465d-b187-40c5f0b38392.jpg;type=multipart/form-data' -F 'notificationId=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1' -F 'text=Open' -F 'customButton=1'
{
"created": 1603184154000,
"updated": 1603184883000,
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"title": "Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "FallBack Title of the Message",
"fbSubtitle": "Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582574507000,
"about": [],
"type": "HOLOPUSH",
"subType": null,
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"state": "NEW",
"priority": "LOW",
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"favourite": 0,
"tags": [],
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"parentMessageId": null,
"holoPushAd": {
"created": 1603185051000,
"updated": 1603205176731,
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
"holoPushWithAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1_facead.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1_facead.webm",
"holoPushAdPosition": "tl",
"buttonUrl": null,
"buttonText": "button",
"customButton": 0
},
"size": null,
"channel": "PUSH",
"holoPushUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1h265.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.webm",
"abTestId": null,
"template": 0,
"feature": null,
"webTopic": null,
"webEventId": null,
"webActive": null
}
Schedule Notification
$ curl 'https://exchange-prod-g.2mee.com/notification/schedule?id=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA'
{
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"title": "Title of the Message",
"subtitle": "SubTitle of the Message",
"text": "Body of the Message",
"action": "Open",
"fbTitle": "FallBack Title of the Message",
"fbSubtitle": "Fallback SubTitle of the Message",
"fbText": "FallBack Text of the Message",
"expiry": 1440,
"playTime": 1582574507000,
"about": [],
"filterId": "1d9d6ffa-6d0b-459e-ad8a-b487eeb268e5",
"priority": "LOW",
"favourite": 0,
"type": "HOLOPUSH",
"channel": "PUSH",
"template": 0,
"feature": null,
"webTopic": null,
"segment": {
"name": "Ind",
"type": "CUSTOM",
"count": null
},
"subType": null,
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
"state": "SCHEDULED",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"messageTitle": null,
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"size": null,
"tags": [],
"parentMessageId": null,
"holoPushAd": {
"created": 1603185051000,
"updated": 1603185376000,
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
"holoPushWithAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1_facead.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1_facead.webm",
"holoPushAdPosition": "tl",
"buttonUrl": null,
"buttonText": "button",
"customButton": 0
},
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
"holoPushUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1h265.mp4;https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.webm",
"created": 1603184154000,
"webActive": null
}
Last updated