RegisterPush » 이력 » 개정판 9
개정판 8 (이름없음, 2021/06/10 06:31) → 개정판 9/10 (이름없음, 2021/06/10 06:33)
h1. RegisterPush
FCM 푸시 메시지를 등록합니다.
<pre><code class="java">
registerPush(
messageRequest: MessageRegisterPushRequest
): CommandResponse
</code></pre>
---
*%{color: #000000;}MessageRegisterPushRequest%*
| %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | %{color: #000000;}note% |
| %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형% | %{color: #000000;}값: registerPush%<notextile></notextile> |
| %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% | %{color: #000000;} % |
| token | %{color: #000000;}String% | 유저의 FCM 토큰 | |
*%{color: #000000;}CommandResponse%*
| %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | %{color: #000000;}note% |
| %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청Command 유형% | %{color: #000000;}값: registerPush%<notextile></notextile> |
---
*%{color: #000000;}Request Example%*
<pre>
mutation{
registerPush(messageRequest:{
did:"G5rw9qAMbozGxySHkMaztD"
command:"registerPush"
token:"cyw-t50FTbidNTOxVHqUfa:APA91bEC3jwQHvSxJoEl3gqn4kGKDE5pXUu5EK4EpAMKSP1yHVaBXcMYojBvtikPS5Pa-DgSvnMK77EW_xfe0nn23BtUJA7UpKUHmUIsjTg1gmCjRKHK26rwCXEyHGQG3SQIcdjYJ--P"
}){
command
}
}</pre>
*%{color: #000000;}Response Example%*
<pre>
{ "data": { "registerPush": { "command": "registerPush" } } }</pre>