Search…
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

1
$ curl 'http://server-v1.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"}'
Copied!
1
{
2
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title":"Title of the Message",
4
"subtitle":"SubTitle of the Message",
5
"text":"Body of the Message",
6
"action":"Open","fbTitle":"FallBack Title of the Message",
7
"fbSubtitle":"Fallback SubTitle of the Message",
8
"fbText":"FallBack Text of the Message",
9
"expiry":1440,
10
"playTime":1582614107682,
11
"about":[],
12
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
13
"priority":"LOW",
14
"favourite":0,
15
"type":"TEXT",
16
"channel":"PUSH",
17
"template":0,
18
"feature":null,
19
"webTopic":null,
20
"segment":null,
21
"subType":"T",
22
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"state":"NEW",
24
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
25
"messageTitle":null,
26
"url":null,
27
"id":"358281e8-ac30-4dc2-864b-2c5438977d96",
28
"size":null,
29
"tags":null,
30
"parentMessageId":null,
31
"holoPushAd":null,
32
"jobId":null,
33
"holoPushUrl":null,
34
"created":1603198753903,
35
"webActive":null
36
}
Copied!

Schedule Notification

1
$ curl 'http://server-v1.2mee.com/notification/schedule?id=358281e8-ac30-4dc2-864b-2c5438977d96' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
{
2
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title":"Title of the Message",
4
"subtitle":"SubTitle of the Message",
5
"text":"Body of the Message",
6
"action":"Open","fbTitle":"FallBack Title of the Message",
7
"fbSubtitle":"Fallback SubTitle of the Message",
8
"fbText":"FallBack Text of the Message",
9
"expiry":1440,
10
"playTime":1582614107682,
11
"about":[],
12
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
13
"priority":"LOW",
14
"favourite":0,
15
"type":"TEXT",
16
"channel":"PUSH",
17
"template":0,
18
"feature":null,
19
"webTopic":null,
20
"segment":null,
21
"subType":"T",
22
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"state":"NEW",
24
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
25
"messageTitle":null,
26
"url":null,
27
"id":"358281e8-ac30-4dc2-864b-2c5438977d96",
28
"size":null,
29
"tags":null,
30
"parentMessageId":null,
31
"holoPushAd":null,
32
"jobId":null,
33
"holoPushUrl":null,
34
"created":1603198753903,
35
"webActive":null
36
}
Copied!

Send a RICH TEXT Message

Create Notification

1
$ curl 'http://server-v1.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" }'
Copied!
1
{
2
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title":"Title of the Message",
4
"subtitle":"SubTitle of the Message",
5
"text":"Body of the Message",
6
"action":"Open","fbTitle":"FallBack Title of the Message",
7
"fbSubtitle":"Fallback SubTitle of the Message",
8
"fbText":"FallBack Text of the Message",
9
"expiry":1440,
10
"playTime":1582614107682,
11
"about":[],
12
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
13
"priority":"LOW",
14
"favourite":0,
15
"type":"TEXT",
16
"channel":"PUSH",
17
"template":0,
18
"feature":null,
19
"webTopic":null,
20
"segment":null,
21
"subType":"T",
22
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"state":"NEW",
24
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
25
"messageTitle":null,
26
"url":null,
27
"id":"358281e8-ac30-4dc2-864b-2c5438977d96",
28
"size":null,
29
"tags":null,
30
"parentMessageId":null,
31
"holoPushAd":null,
32
"jobId":null,
33
"holoPushUrl":null,
34
"created":1603198753903,
35
"webActive":null
36
}
Copied!

Add Rich Content2

1
2
$ curl 'http://server-v1.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}'
Copied!
1
{
2
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title": "Updated Title of the Message",
4
"subtitle": "SubTitle of the Message",
5
"text": "Body of the Message",
6
"action": "Open",
7
"fbTitle": "updated FallBack Title of the Message",
8
"fbSubtitle": "updated Fallback SubTitle of the Message",
9
"fbText": "FallBack Text of the Message",
10
"expiry": 1440,
11
"playTime": 1582614107682,
12
"about": [],
13
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
14
"priority": "LOW",
15
"favourite": 0,
16
"type": "TEXT",
17
"channel": "PUSH",
18
"template":0,
19
"feature":null,
20
"webTopic":null,
21
"segment": null,
22
"subType": "I",
23
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
24
"state": "NEW",
25
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
26
"messageTitle": null,
27
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8cd03336-9f01-4442-8547-96ce89777968_c367b4ce-d777-4ea8-9427-b6fcf896ab7d.jpeg",
28
"id": "358281e8-ac30-4dc2-864b-2c5438977d96",
29
"size": 8873,
30
"tags":null,
31
"parentMessageId":null,
32
"holoPushAd":null,
33
"jobId":null,
34
"holoPushUrl":null,
35
"created":1603198753903,
36
"webActive":null
37
}
Copied!

Schedule Notification

1
curl -X POST "http://server-v1.2mee.com/notification/schedule?id=358281e8-ac30-4dc2-864b-2c5438977d96" -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA" -H "accept: */*" | jq '.'
Copied!
1
{
2
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title": "Title of the Message",
4
"subtitle": "SubTitle of the Message",
5
"text": "Body of the Message",
6
"action": "Open",
7
"fbTitle": "FallBack Title of the Message",
8
"fbSubtitle": "Fallback SubTitle of the Message",
9
"fbText": "FallBack Text of the Message",
10
"expiry": 1440,
11
"playTime": 1582614107682,
12
"about": [],
13
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
14
"priority": "LOW",
15
"favourite": 0,
16
"type": "TEXT",
17
"channel": "PUSH",
18
"template":0,
19
"feature":null,
20
"webTopic":null,
21
"segment": null,
22
"subType": "I",
23
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
24
"state": "NEW",
25
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
26
"messageTitle": null,
27
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8cd03336-9f01-4442-8547-96ce89777968_c367b4ce-d777-4ea8-9427-b6fcf896ab7d.jpeg",
28
"id": "358281e8-ac30-4dc2-864b-2c5438977d96",
29
"size": 8873,
30
"tags":null,
31
"parentMessageId":null,
32
"holoPushAd":null,
33
"jobId":null,
34
"holoPushUrl":null,
35
"created":1603198753903,
36
"webActive":null
37
}
Copied!

Send a HoloPush

Create Notification

1
$ curl 'http://server-v1.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"}'
Copied!
1
{
2
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title":"Title of the Message",
4
"subtitle":"SubTitle of the Message",
5
"text":"Body of the Message",
6
"action":"Open",
7
"fbTitle":"FallBack Title of the Message",
8
"fbSubtitle":"Fallback SubTitle of the Message",
9
"fbText":"FallBack Text of the Message",
10
"expiry":1440,
11
"playTime":1582614107682,
12
"about":[],
13
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
14
"priority":"LOW",
15
"favourite":0,
16
"type":"HOLOPUSH",
17
"channel":"PUSH",
18
"template":0,
19
"feature":null,
20
"webTopic":null,
21
"segment":null,
22
"subType":null,
23
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
24
"state":"NEW",
25
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
26
"messageTitle":null,
27
"url":null,
28
"id":"91f0d2d6-1898-4538-98c8-ee12796d0ac5",
29
"size":null,
30
"tags":null,
31
"parentMessageId":null,
32
"holoPushAd":null,
33
"jobId":null,
34
"holoPushUrl":null,
35
"created":1603199790325,
36
"webActive":null
37
}
Copied!

Create Job

1
$ curl 'http://server-v1.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" : "[email protected]", "appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16", "favourite" : 0, "script" : "Message Script", "isStock" : 0, "notificationId" : "91f0d2d6-1898-4538-98c8-ee12796d0ac5", "jobType" :"HOLOPUSH" }'
2
Copied!
1
{
2
"id":"8d552bf9-438a-4855-8216-7ea624967fb1",
3
"title":"Title for the Message",
4
"description":"Message Description",
5
"holoPushLevel":"TORSO",
6
"dueDate":1582613760565,
7
"artist":"[email protected]",
8
"artistDueDate":1582613760565,
9
"script":"Message Script",
10
"creator":"[email protected]",
11
"favourite":0,
12
"filterId":null,
13
"isStock":0,
14
"state":"NEW",
15
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
16
"appName":null,
17
"campaignId":null,
18
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
19
"artistName":"Dan Kersley",
20
"history":null,"
21
tags":null,
22
"take":null,
23
"creatorName":"Jennifer Riley",
24
"segment":null,
25
"notificationId":"91f0d2d6-1898-4538-98c8-ee12796d0ac5",
26
"jobType":"HOLOPUSH",
27
"lastNudgeTime":null
28
}
Copied!

Assign Job to Artist

1
$ curl 'http://server-v1.2mee.com/job/executeJob?id=8d552bf9-438a-4855-8216-7ea624967fb1' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
{
2
"id":"8d552bf9-438a-4855-8216-7ea624967fb1",
3
"title":"Title for the Message",
4
"description":"Message Description",
5
"holoPushLevel":"TORSO",
6
"dueDate":"2020-02-25",
7
"artist":"[email protected]",
8
"artistDueDate":"2020-02-25",
9
"script":"Message Script",
10
"creator":"[email protected]",
11
"favourite":0,
12
"filterId":null,
13
"isStock":0,"
14
state":"EXECUTE",
15
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
16
"appName":"2Mee Demo",
17
"campaignId":null,
18
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
19
"artistName":"Dan Kersley",
20
"history":
21
[
22
{
23
"created":1603200077000,
24
"updated":1603200077000,
25
"id":67823,
26
"jobId":"8d552bf9-438a-4855-8216-7ea624967fb1",
27
"comment":null,
28
"defaultComment":" created this message.",
29
"creator":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
30
"creatorName":"Jennifer Riley"
31
}
32
],
33
"tags":[],
34
"take":null,
35
"creatorName":"Jennifer Riley",
36
"segment":null,
37
"notificationId":"91f0d2d6-1898-4538-98c8-ee12796d0ac5",
38
"jobType":"HOLOPUSH",
39
"lastNudgeTime":null
40
}
Copied!

Wait for the artist to submit the recording

List Artist's Submission

1
$ curl 'http://server-v1.2mee.com/submission/list?jobId=8d552bf9-438a-4855-8216-7ea624967fb1' -i -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
2
Copied!
1
[
2
{
3
"id": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
4
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
5
"state": "NEW",
6
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
7
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
8
"comments": null,
9
"fileCount": 0,
10
"created": 1603181477000,
11
"updated": 1603181477000,
12
"takes": [
13
{
14
"created": 1603181568000,
15
"updated": 1603181568000,
16
"id": "34c38d7a-a504-4fa2-b23b-5d1084401531",
17
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
18
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
19
"state": "NEW",
20
"fileName": "8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
21
"submission": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
22
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"duration": null,
24
"seekTime": 0.14500001072883606,
25
"pngUrl": null,
26
"stockId": null
27
}
28
]
29
}
30
]
Copied!

Facee select

1
$ curl 'http://server-v1.2mee.com/holoPush/select?file_id=34c38d7a-a504-4fa2-b23b-5d1084401531' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
[
2
{
3
"id": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
4
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
5
"state": "NEW",
6
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
7
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
8
"comments": null,
9
"fileCount": 0,
10
"created": 1603181477000,
11
"updated": 1603181477000,
12
"takes": [
13
{
14
"created": 1603181568000,
15
"updated": 1603201444285,
16
"id": "34c38d7a-a504-4fa2-b23b-5d1084401531",
17
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
18
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
19
"state": "SELECTED",
20
"fileName": "8d552bf9-438a-4855-8216-7ea624967fb1-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
21
"submission": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
22
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"duration": null,
24
"seekTime": 0.14500001072883606,
25
"pngUrl": null,
26
"stockId": null
27
}
28
]
29
}
30
]
Copied!

Accept a Submission

1
$ curl 'http://server-v1.2mee.com/job/accept?id=8d552bf9-438a-4855-8216-7ea624967fb1' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
{
2
"id": "8d552bf9-438a-4855-8216-7ea624967fb1",
3
"title": "Title for the Message",
4
"description": "Message Description",
5
"holoPushLevel": "TORSO",
6
"dueDate": "2020-02-25",
7
"artist": "[email protected]",
8
"artistDueDate": "2020-02-25",
9
"script": "Message Script",
10
"creator": "[email protected]",
11
"favourite": 0,
12
"filterId": null,
13
"isStock": 0,
14
"state": "ACCEPTED",
15
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
16
"appName": "2Mee Demo",
17
"campaignId": null,
18
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
19
"artistName": "Dan Kersley",
20
"history": [
21
{
22
"created": 1603180277000,
23
"updated": 1603180277000,
24
"id": 67823,
25
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
26
"comment": null,
27
"defaultComment": " created this message.",
28
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
29
"creatorName": "Jennifer Riley"
30
},
31
{
32
"created": 1603180395000,
33
"updated": 1603180395000,
34
"id": 67824,
35
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
36
"comment": null,
37
"defaultComment": " assigned this message to Dan Kersley ",
38
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
39
"creatorName": "Jennifer Riley"
40
},
41
{
42
"created": 1603181479000,
43
"updated": 1603181479000,
44
"id": 67825,
45
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
46
"comment": null,
47
"defaultComment": " created submission for this message.",
48
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
49
"creatorName": "Jennifer Riley"
50
},
51
{
52
"created": 1603181715000,
53
"updated": 1603181715000,
54
"id": 67826,
55
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
56
"comment": null,
57
"defaultComment": " submitted submission for this message with 1 recordings.",
58
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
59
"creatorName": "Jennifer Riley"
60
}
61
],
62
"tags": [],
63
"take": {
64
"created": 1603181568000,
65
"updated": 1603201585297,
66
"id": "34c38d7a-a504-4fa2-b23b-5d1084401531",
67
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
68
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
69
"state": "SELECTED",
70
"fileName": "91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
71
"submission": "b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07",
72
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
73
"duration": null,
74
"seekTime": 0.14500001072883606,
75
"pngUrl": null,
76
"stockId": null
77
},
78
"creatorName": "Jennifer Riley",
79
"segment": null,
80
"notificationId": "91f0d2d6-1898-4538-98c8-ee12796d0ac5",
81
"jobType": "HOLOPUSH",
82
"lastNudgeTime": null
83
}
Copied!

Schedule Notification

1
$ curl 'http://server-v1.2mee.com/notification/schedule?id=91f0d2d6-1898-4538-98c8-ee12796d0ac5' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
{
2
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title": "Title of the Message",
4
"subtitle": "SubTitle of the Message",
5
"text": "Body of the Message",
6
"action": "Open",
7
"fbTitle": "FallBack Title of the Message",
8
"fbSubtitle": "Fallback SubTitle of the Message",
9
"fbText": "FallBack Text of the Message",
10
"expiry": 1440,
11
"playTime": 1582574507000,
12
"about": [],
13
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
14
"priority": "LOW",
15
"favourite": 0,
16
"type": "HOLOPUSH",
17
"channel": "PUSH",
18
"template": 0,
19
"feature": null,
20
"webTopic": null,
21
"segment": {
22
"name": "All Users",
23
"type": "DEFAULT",
24
"count": null
25
},
26
"subType": null,
27
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
28
"state": "SCHEDULED",
29
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
30
"messageTitle": null,
31
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/91f0d2d6-1898-4538-98c8-ee12796d0ac5-b1e8410a-ad85-4236-aa7e-a7fa2bd6aa07-take-1.mp4",
32
"id": "91f0d2d6-1898-4538-98c8-ee12796d0ac5",
33
"size": null,
34
"tags": [],
35
"parentMessageId": null,
36
"holoPushAd": null,
37
"jobId": "8d552bf9-438a-4855-8216-7ea624967fb1",
38
"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",
39
"created": 1603179990000,
40
"webActive": null
41
}
Copied!

Send a HoloPush With Ad and Ad button

Create Notification

1
$ curl 'http://server-v1.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"}'
Copied!
1
{
2
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title":"Title of the Message",
4
"subtitle":"SubTitle of the Message",
5
"text":"Body of the Message",
6
"action":"Open",
7
"fbTitle":"FallBack Title of the Message",
8
"fbSubtitle":"Fallback SubTitle of the Message",
9
"fbText":"FallBack Text of the Message",
10
"expiry":1440,
11
"playTime":1582614107682,
12
"about":[],
13
"filterId":"f5242ddb-a468-4797-9fda-2d0eca5564dc",
14
"priority":"LOW",
15
"favourite":0,
16
"type":"HOLOPUSH",
17
"channel":"PUSH",
18
"template":0,
19
"feature":null,
20
"webTopic":null,
21
"segment":null,
22
"subType":null,
23
"createdBy":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
24
"state":"NEW",
25
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
26
"messageTitle":null,
27
"url":null,
28
"id":"f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
29
"size":null,"tags":null,
30
"parentMessageId":null,
31
"holoPushAd":null,
32
"jobId":null,
33
"holoPushUrl":null,
34
"created":1603203954254,
35
"webActive":null
36
}
Copied!

Create Job

1
$ curl 'http://server-v1.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" : "[email protected]", "appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16", "favourite" : 0, "script" : "Message Script", "isStock" : 0, "notificationId" : "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1", "jobType" :"HOLOPUSH" }'
Copied!
1
{
2
"id":"3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
3
"title":"Title for the Message",
4
"description":"Message Description",
5
"holoPushLevel":"TORSO",
6
"dueDate":1582613760565,
7
"artist":"[email protected]",
8
"artistDueDate":1582613760565,
9
"script":"Message Script",
10
"creator":"[email protected]",
11
"favourite":0,
12
"filterId":null,
13
"isStock":0,
14
"state":"NEW",
15
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
16
"appName":null,
17
"campaignId":null,
18
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
19
"artistName":"Dan Kersley",
20
"history":null,
21
"tags":null,
22
"take":null,
23
"creatorName":"Jennifer Riley",
24
"segment":null,
25
"notificationId":"f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
26
"jobType":"HOLOPUSH",
27
"lastNudgeTime":null
28
}
Copied!

Assign Job to Artist

1
$ curl 'http://server-v1.2mee.com/job/executeJob?id=3ac7423b-02f0-4265-90cd-a6f15ac1ffe4' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
2
Copied!
1
{
2
"id":"3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
3
"title":"Title for the Message",
4
"description":"Message Description",
5
"holoPushLevel":"TORSO",
6
"dueDate":"2020-02-25",
7
"artist":"[email protected]",
8
"artistDueDate":"2020-02-25",
9
"script":"Message Script",
10
"creator":"[email protected]",
11
"favourite":0,
12
"filterId":null,
13
"isStock":0,
14
"state":"EXECUTE",
15
"appId":"bacb37d0-a51f-491b-bd68-489c245b8c16",
16
"appName":"2Mee Demo",
17
"campaignId":null,
18
"companyId":"6c445333-bac9-4ab0-a0b6-cc6838902abb",
19
"artistName":"Dan Kersley",
20
"history":[
21
{
22
"created":1603204097000,
23
"updated":1603204097000,
24
"id":67834,"jobId":"3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
25
"comment":null,
26
"defaultComment":" created this message.",
27
"creator":"8b855c84-cc83-414b-b027-9fe0c8116dd7",
28
"creatorName":"Jennifer Riley"
29
}
30
],
31
"tags":[],
32
"take":null,
33
"creatorName":"Jennifer Riley",
34
"segment":null,
35
"notificationId":"f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
36
"jobType":"HOLOPUSH",
37
"lastNudgeTime":null
38
}
Copied!

Wait for Artist's submission

List Artist's Submission

1
$ curl 'http://server-v1.2mee.com/submission/list?jobId=3ac7423b-02f0-4265-90cd-a6f15ac1ffe4' -i -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
2
Copied!
1
[
2
{
3
"id": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
4
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
5
"state": "NEW",
6
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
7
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
8
"comments": null,
9
"fileCount": 0,
10
"created": 1603184519000,
11
"updated": 1603184519000,
12
"takes": [
13
{
14
"created": 1603184563000,
15
"updated": 1603184589000,
16
"id": "b6fe45a9-a0b0-47c6-9912-fff9c4486db8",
17
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
18
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
19
"state": "SELECTED",
20
"fileName": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
21
"submission": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
22
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"duration": null,
24
"seekTime": 0.14500001072883606,
25
"pngUrl": null,
26
"stockId": null
27
}
28
]
29
}
30
]
Copied!

HoloPush select

1
$ curl 'http://server-v1.2mee.com/holoPush/select?file_id=b6fe45a9-a0b0-47c6-9912-fff9c4486db8' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
[
2
{
3
"id": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
4
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
5
"state": "REVIEW",
6
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
7
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
8
"comments": null,
9
"fileCount": 0,
10
"created": 1603184519000,
11
"updated": 1603204502406,
12
"takes": [
13
{
14
"created": 1603184563000,
15
"updated": 1603204500360,
16
"id": "b6fe45a9-a0b0-47c6-9912-fff9c4486db8",
17
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
18
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
19
"state": "SELECTED",
20
"fileName": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
21
"submission": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
22
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
23
"duration": null,
24
"seekTime": 0.14500001072883606,
25
"pngUrl": null,
26
"stockId": null
27
}
28
]
29
}
30
]
Copied!

Accept a Submission

1
$ curl 'http://server-v1.2mee.com/job/accept?id=64c49d77-d5d0-4faf-bcb1-2c7888366692' -i -X POST -H 'Authorization: BearereyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTYwMzIxNjE2NiwiaWF0IjoxNjAzMTk4MTY2fQ.s69OxZYA6ZjPyaHv002jmRbnacqo-QOmym0Wtcgwt7UUP0PfJDrM72y9zpzpS2NlSV8UzEStWWDjqkc5b_8_DA'
Copied!
1
{
2
"id": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
3
"title": "Title for the Message",
4
"description": "Message Description",
5
"holoPushLevel": "TORSO",
6
"dueDate": "2020-02-25",
7
"artist": "[email protected]",
8
"artistDueDate": "2020-02-25",
9
"script": "Message Script",
10
"creator": "[email protected]",
11
"favourite": 0,
12
"filterId": null,
13
"isStock": 0,
14
"state": "ACCEPTED",
15
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
16
"appName": "2Mee Demo",
17
"campaignId": null,
18
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
19
"artistName": "Dan Kersley",
20
"history": [
21
{
22
"created": 1603184297000,
23
"updated": 1603184297000,
24
"id": 67834,
25
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
26
"comment": null,
27
"defaultComment": " created this message.",
28
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
29
"creatorName": "Jennifer Riley"
30
},
31
{
32
"created": 1603184398000,
33
"updated": 1603184398000,
34
"id": 67835,
35
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
36
"comment": null,
37
"defaultComment": " assigned this message to Dan Kersley ",
38
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
39
"creatorName": "Jennifer Riley"
40
},
41
{
42
"created": 1603184522000,
43
"updated": 1603184522000,
44
"id": 67836,
45
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
46
"comment": null,
47
"defaultComment": " created submission for this message.",
48
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
49
"creatorName": "Jennifer Riley"
50
},
51
{
52
"created": 1603184803000,
53
"updated": 1603184803000,
54
"id": 67837,
55
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
56
"comment": null,
57
"defaultComment": " submitted submission for this message with 1 recordings.",
58
"creator": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
59
"creatorName": "Jennifer Riley"
60
}
61
],
62
"tags": [],
63
"take": {
64
"created": 1603184563000,
65
"updated": 1603204675610,
66
"id": "b6fe45a9-a0b0-47c6-9912-fff9c4486db8",
67
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
68
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
69
"state": "SELECTED",
70
"fileName": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
71
"submission": "519b410f-a0ea-4e35-972c-b0881e8de8bd",
72
"actor": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
73
"duration": null,
74
"seekTime": 0.14500001072883606,
75
"pngUrl": null,
76
"stockId": null
77
},
78
"creatorName": "Jennifer Riley",
79
"segment": null,
80
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
81
"jobType": "HOLOPUSH",
82
"lastNudgeTime": null
83
}
Copied!

Upload FaceAd

1
$ curl 'http://server-v1.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 "[email protected]/Users/shrinidhidurairaj/Downloads/Image.jpeg" | jq '.'
2
Copied!
1
{
2
"created": 1603184154000,
3
"updated": 1603184883000,
4
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
5
"title": "Title of the Message",
6
"subtitle": "SubTitle of the Message",
7
"text": "Body of the Message",
8
"action": "Open",
9
"fbTitle": "FallBack Title of the Message",
10
"fbSubtitle": "Fallback SubTitle of the Message",
11
"fbText": "FallBack Text of the Message",
12
"expiry": 1440,
13
"playTime": 1582574507000,
14
"about": [],
15
"type": "HOLOPUSH",
16
"subType": null,
17
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
18
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
19
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
20
"state": "NEW",
21
"priority": "LOW",
22
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
23
"favourite": 0,
24
"tags": [],
25
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
26
"parentMessageId": null,
27
"holoPushAd": {
28
"created": 1603204851396,
29
"updated": 1603204851396,
30
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
31
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
32
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
33
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
34
"holoPushWithAdUrl": null,
35
"holoPushAdPosition": "bl",
36
"buttonUrl": null,
37
"buttonText": null,
38
"customButton": 0
39
},
40
"size": null,
41
"channel": "PUSH",
42
"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",
43
"abTestId": null,
44
"template": 0,
45
"feature": null,
46
"webTopic": null,
47
"webEventId": null,
48
"webActive": null
49
}
Copied!

Merge FaceAd

1
curl 'http://server-v1.2mee.com/notification/holoAd/merge?id=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1&position=tl' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA'
2
Copied!
1
{
2
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title": "Title of the Message",
4
"subtitle": "SubTitle of the Message",
5
"text": "Body of the Message",
6
"action": "Open",
7
"fbTitle": "FallBack Title of the Message",
8
"fbSubtitle": "Fallback SubTitle of the Message",
9
"fbText": "FallBack Text of the Message",
10
"expiry": 1440,
11
"playTime": 1582574507000,
12
"about": [],
13
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
14
"priority": "LOW",
15
"favourite": 0,
16
"type": "HOLOPUSH",
17
"channel": "PUSH",
18
"template": 0,
19
"feature": null,
20
"webTopic": null,
21
"segment": null,
22
"subType": null,
23
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
24
"state": "NEW",
25
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
26
"messageTitle": null,
27
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
28
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
29
"size": null,
30
"tags": [],
31
"parentMessageId": null,
32
"holoPushAd": {
33
"created": 1603185051000,
34
"updated": 1603204974588,
35
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
36
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
37
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
38
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
39
"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",
40
"holoPushAdPosition": "tl",
41
"buttonUrl": null,
42
"buttonText": null,
43
"customButton": 0
44
},
45
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
46
"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",
47
"created": 1603184154000,
48
"webActive": null
49
}
Copied!

Upload FaceAD Button

1
$ curl 'http://server-v1.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 '[email protected]_6df32106-236f-465d-b187-40c5f0b38392.jpg;type=multipart/form-data' -F 'notificationId=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1' -F 'text=Open' -F 'customButton=1'
Copied!
1
{
2
"created": 1603184154000,
3
"updated": 1603184883000,
4
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
5
"title": "Title of the Message",
6
"subtitle": "SubTitle of the Message",
7
"text": "Body of the Message",
8
"action": "Open",
9
"fbTitle": "FallBack Title of the Message",
10
"fbSubtitle": "Fallback SubTitle of the Message",
11
"fbText": "FallBack Text of the Message",
12
"expiry": 1440,
13
"playTime": 1582574507000,
14
"about": [],
15
"type": "HOLOPUSH",
16
"subType": null,
17
"filterId": "f5242ddb-a468-4797-9fda-2d0eca5564dc",
18
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
19
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
20
"state": "NEW",
21
"priority": "LOW",
22
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
23
"favourite": 0,
24
"tags": [],
25
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
26
"parentMessageId": null,
27
"holoPushAd": {
28
"created": 1603185051000,
29
"updated": 1603205176731,
30
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
31
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
32
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
33
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
34
"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",
35
"holoPushAdPosition": "tl",
36
"buttonUrl": null,
37
"buttonText": "button",
38
"customButton": 0
39
},
40
"size": null,
41
"channel": "PUSH",
42
"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",
43
"abTestId": null,
44
"template": 0,
45
"feature": null,
46
"webTopic": null,
47
"webEventId": null,
48
"webActive": null
49
}
Copied!

Schedule Notification

1
$ curl 'http://server-v1.2mee.com/notification/schedule?id=f0e3dddd-5ed1-4b23-a304-aae815a9e4b1' -i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA'
Copied!
1
{
2
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
3
"title": "Title of the Message",
4
"subtitle": "SubTitle of the Message",
5
"text": "Body of the Message",
6
"action": "Open",
7
"fbTitle": "FallBack Title of the Message",
8
"fbSubtitle": "Fallback SubTitle of the Message",
9
"fbText": "FallBack Text of the Message",
10
"expiry": 1440,
11
"playTime": 1582574507000,
12
"about": [],
13
"filterId": "1d9d6ffa-6d0b-459e-ad8a-b487eeb268e5",
14
"priority": "LOW",
15
"favourite": 0,
16
"type": "HOLOPUSH",
17
"channel": "PUSH",
18
"template": 0,
19
"feature": null,
20
"webTopic": null,
21
"segment": {
22
"name": "Ind",
23
"type": "CUSTOM",
24
"count": null
25
},
26
"subType": null,
27
"createdBy": "8b855c84-cc83-414b-b027-9fe0c8116dd7",
28
"state": "SCHEDULED",
29
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
30
"messageTitle": null,
31
"url": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1-519b410f-a0ea-4e35-972c-b0881e8de8bd-take-1.mp4",
32
"id": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
33
"size": null,
34
"tags": [],
35
"parentMessageId": null,
36
"holoPushAd": {
37
"created": 1603185051000,
38
"updated": 1603185376000,
39
"notificationId": "f0e3dddd-5ed1-4b23-a304-aae815a9e4b1",
40
"appId": "bacb37d0-a51f-491b-bd68-489c245b8c16",
41
"companyId": "6c445333-bac9-4ab0-a0b6-cc6838902abb",
42
"holoPushAdUrl": "https://secureexchange.s3.eu-geo.objectstorage.softlayer.net/f0e3dddd-5ed1-4b23-a304-aae815a9e4b1_068bd4b2-120b-498b-aa87-2176cf07198e.png",
43
"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",
44
"holoPushAdPosition": "tl",
45
"buttonUrl": null,
46
"buttonText": "button",
47
"customButton": 0
48
},
49
"jobId": "3ac7423b-02f0-4265-90cd-a6f15ac1ffe4",
50
"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",
51
"created": 1603184154000,
52
"webActive": null
53
}
Copied!

Last modified 7mo ago