Search…
Rich Text
Rich text message allows you to send a simple text message with rich media content.

Text message

A Text Message consists of a simple text and has options of including rich media content.
post
http://server-v1.2mee.com/notification/create
Text message create
Shown below are the steps that you will go through if the message was created using UI:
Example Curl command for creating a message:
1
$ curl 'http://server-v1.2mee.com/notification/create' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA' -d '{
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" : "9e862fc2-e3b6-4420-bf63-80ad4368ec88",
14
"priority" : "LOW",
15
"favourite" : 0,
16
"type" : "TEXT",
17
"channel" : "PUSH"
18
}'
Copied!
put
http://server-v1.2mee.com/notification/update
Text message update
Click on the message to update it and then click the Save Draft button present at the bottom left corner after completion.
1
$ curl 'http://server-v1.2mee.com/notification/update' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA' -d '{
2
"id" : "f4769c89-939b-4521-9435-5b3ce49d8fdb",
3
"title" : "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" : "Fallback SubTitle of the Message",
9
"fbText" : "FallBack Text of the Message",
10
"expiry" : 1440,
11
"playTime" :1582614107682,
12
"about" : [ {
13
"key" : "__openExternalURL",
14
"value" : "https://2mee.com/"
15
} ],
16
"filterId" : "9e862fc2-e3b6-4420-bf63-80ad4368ec88",
17
"priority" : "LOW",
18
"favourite" : 0
19
}'
20
21
Copied!
post
http://server-v1.2mee.com/notification/upload
Text message upload metadata
Below is an example of how this is done on the UI:
1
$ curl 'http://server-v1.2mee.com/notification/upload?id=notification/retarget?notificationId=f4769c89-939b-4521-9435-5b3ce49d8fdb&appId=bacb37d0-a51f-491b-bd68-489c245b8c16&engaged=ALLUSERS'
2
-i -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA''
3
-i -X POST -H 'Content-Type: multipart/form-data' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA' -F '[email protected]_225bbed6-d7ca-4bad-99f1-df4bef1fe6dc.jpg;type=multipart/form-data' -F 'id=f4769c89-939b-4521-9435-5b3ce49d8fdb'
Copied!
Last modified 1yr ago