TargetMessage » 이력 » 버전 8
이름없음, 2021/06/10 06:33
| 1 | 1 | 이름없음 | h1. TargetMessage |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | 4 | 이름없음 | 수신 대상에게만 FCM 푸시 메시지를 발송합니다. |
| 4 | |||
| 5 | 6 | 이름없음 | <pre><code class="java"> |
| 6 | 2 | 이름없음 | targetMessage( |
| 7 | messageTargetRequest: MessageTargetRequest |
||
| 8 | ): MessageResponse |
||
| 9 | </code></pre> |
||
| 10 | 1 | 이름없음 | |
| 11 | *%{color: #000000;}MessageTargetRequest%* |
||
| 12 | 2 | 이름없음 | |
| 13 | 6 | 이름없음 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | %{color: #000000;}note% | |
| 14 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형% | %{color: #000000;}값: targetMessage%<notextile></notextile> | |
||
| 15 | 5 | 이름없음 | | %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% | %{color: #000000;} % | |
| 16 | 1 | 이름없음 | | message | %{color: #000000;}String% | 메시지 내용 | | |
| 17 | 5 | 이름없음 | | target | %{color: #000000;}String% | 메시지 수신 대상 | | |
| 18 | 2 | 이름없음 | |
| 19 | 1 | 이름없음 | *%{color: #000000;}MessageResponse%* |
| 20 | 2 | 이름없음 | |
| 21 | 6 | 이름없음 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | note | |
| 22 | 2 | 이름없음 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청Command 유형% | %{color: #000000;}값: targetMessage% | |
| 23 | 5 | 이름없음 | | %{color: #000000;}result% | %{color: #000000;}String% | %{color: #000000;} % | %{color: #000000;} % | |
| 24 | |||
| 25 | 6 | 이름없음 | --- |
| 26 | 2 | 이름없음 | |
| 27 | 6 | 이름없음 | *%{color: #000000;}Request Example%* |
| 28 | |||
| 29 | 2 | 이름없음 | <pre> |
| 30 | mutation{ |
||
| 31 | targetMessage(messageTargetRequest:{ |
||
| 32 | did:"NfoPEFaG1adkCpijR85L66" |
||
| 33 | command:"targetMessage" |
||
| 34 | target:"did:NfoPEFaG1adkCpijR85L66" |
||
| 35 | 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\": \"*\"}}}" |
||
| 36 | }){ |
||
| 37 | command |
||
| 38 | result |
||
| 39 | } |
||
| 40 | }</pre> |
||
| 41 | |||
| 42 | 6 | 이름없음 | *Response Example* |
| 43 | 2 | 이름없음 | 예시 없음 |