TargetMessage » 이력 » 버전 2
이름없음, 2021/06/04 06:10
| 1 | 1 | 이름없음 | h1. TargetMessage |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | h2. %{color: #000000;}요청 필드% |
||
| 4 | |||
| 5 | <pre><code class="c"> |
||
| 6 | targetMessage( |
||
| 7 | messageTargetRequest: MessageTargetRequest |
||
| 8 | ): MessageResponse |
||
| 9 | </code></pre> |
||
| 10 | |||
| 11 | *%{color: #000000;}MessageTargetRequest%* |
||
| 12 | |||
| 13 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | |
||
| 14 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형 (값: "tnkSettlement")% | |
||
| 15 | | %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% | |
||
| 16 | | message | %{color: #000000;}String% | 메시지 내용 | |
||
| 17 | | target | %{color: #000000;}String% | 메시지 수신 대상 | |
||
| 18 | |||
| 19 | *%{color: #000000;}MessageResponse%* |
||
| 20 | |||
| 21 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | |
||
| 22 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청Command 유형% | |
||
| 23 | | %{color: #000000;}result% | %{color: #000000;}String% | %{color: #000000;} % | |
||
| 24 | |||
| 25 | *%{color: #000000;}요청 예시%* |
||
| 26 | |||
| 27 | <pre> |
||
| 28 | mutation{ |
||
| 29 | targetMessage(messageTargetRequest:{ |
||
| 30 | did:"NfoPEFaG1adkCpijR85L66" |
||
| 31 | command:"targetMessage" |
||
| 32 | target:"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;}응답 예시%* |
||
| 41 | 예시 없음 |