-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.http
45 lines (37 loc) · 941 Bytes
/
test.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
POST http://127.0.0.1:4004/send HTTP/1.1
Authorization: key=asdasdlkjaskldbabdknasdnaslndlasndl'k
Content-Type: application/json
{
"to": "123123",
"data": {
"click_action": "FLUTTER_NOTIFICATION_CLICK",
"action": "add",
"itemtype": "shipping",
"value": ""
},
"notification": {
"title": "aaaaa"
}
}
###
POST http://127.0.0.1:4004/v1/projects/my-awesome-project/messages:send HTTP/1.1
Authorization: Bearer asdasdlkjaskldbabdknasdnaslndlasndl'k
Content-Type: application/json
{
"Message" : {
"token": "123123",
"data": {
"click_action": "FLUTTER_NOTIFICATION_CLICK",
"action": "add",
"itemtype": "shipping",
"value": ""
},
"notification": {
"title": "aaaaa"
}
}
}
###
GET http://127.0.0.1:4004/api/messages HTTP/1.1
###
DELETE http://127.0.0.1:4004/api/messages HTTP/1.1