BroadcastMessage » 이력 » 버전 1
이름없음, 2024/01/17 12:18
1 | 1 | 이름없음 | h1. BroadcastMessage |
---|---|---|---|
2 | |||
3 | FCM 푸시 메시지를 전 사용자에게 발송합니다. |
||
4 | |||
5 | <pre><code class="java"> |
||
6 | broadcastMessage( |
||
7 | messageBroadcaseRequest: MessageBroadcaseRequest |
||
8 | ): MessageResponse |
||
9 | </code></pre> |
||
10 | |||
11 | *%{color: #000000;}MessageBroadcaseRequest%* |
||
12 | |||
13 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | note | |
||
14 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형% | %{color: #000000;}값: broadcastMessage% | |
||
15 | | %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% | %{color: #000000;} % | |
||
16 | | message | %{color: #000000;}String% | 메시지 내용 | | |
||
17 | |||
18 | *%{color: #000000;}MessageResponse%* |
||
19 | |||
20 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | %{color: #000000;}note% | |
||
21 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형% | %{color: #000000;}값: broadcastMessage% | |
||
22 | | %{color: #000000;}result% | %{color: #000000;}String% | %{color: #000000;} % | %{color: #000000;} % | |
||
23 | |||
24 | --- |
||
25 | |||
26 | *%{color: #000000;}Request Example%* |
||
27 | |||
28 | <pre> |
||
29 | mutation{ |
||
30 | broadcastMessage(messageBroadcaseRequest:{ |
||
31 | command:"broadcastMessage" |
||
32 | did:"NfoPEFaG1adkCpijR85L66" |
||
33 | message:"{\"data\": {\"Command\": 0,\"Notification\": {\"Title\": \"타이틀\",\"Content\": \"상세 메시지\",\"OnGoing\": false,\"Priority\": 0,\"ImageUrl\": \"https://\",\"ShowBadge\": false},\"MoveTo\": 0,\"AppUpdate\": {\"TargetVersion\": 21010601,\"IsMandatory\": true},\"DataUpdate\": {\"Target\": 0},\"DataCollect\": {\"Type\": 1,\"ProposalID\": \"*\"}}}" |
||
34 | }){ |
||
35 | command |
||
36 | result |
||
37 | } |
||
38 | }</pre> |
||
39 | |||
40 | *%{color: #000000;}Response Example%* |
||
41 | |||
42 | <pre> |
||
43 | { |
||
44 | "data": { |
||
45 | "broadcastMessage": { |
||
46 | "command": "broadcastMessage", |
||
47 | "result": "projects/myd-ldp-cd19d/messages/5757905970412779996" |
||
48 | } |
||
49 | } |
||
50 | }</pre> |