Phone - TakayukiHoshi1984/DeviceConnect-Spec GitHub Wiki
åšèŸºæ©åšããã¹ããŒããã©ã³ã®é話æ©èœãããã¯é話æäœæ©èœãæäŸããAPIã
API | æŠèŠ |
---|---|
POST /gotapi/phone/acceptCall | ã¹ããŒããã©ã³ã«å¯ŸããŠçä¿¡å¿çããªã¯ãšã¹ãããã |
POST /gotapi/phone/call | ã¹ããŒããã©ã³ã«å¯ŸããŠé»è©±çºä¿¡ããªã¯ãšã¹ãããã |
GET /gotapi/phone/callState | çŸåšã®é話ç¶æ ãååŸããã |
POST /gotapi/phone/endCall | ã¹ããŒããã©ã³ã«å¯ŸããŠé話çµäºããªã¯ãšã¹ãããã |
GET /gotapi/phone/onCallStateChange | é話ç¶æ ã®å€æŽéç¥ã€ãã³ãã®ãã£ãã·ã¥ãååŸããã |
PUT /gotapi/phone/onCallStateChange | é話ç¶æ ã®å€æŽéç¥ã€ãã³ããéå§ããã |
DELETE /gotapi/phone/onCallStateChange | é話ç¶æ ã®å€æŽéç¥ã€ãã³ããåæ¢ããã |
GET /gotapi/phone/onConnect | ã¹ããŒããã©ã³ã«å¯ŸããŠè¡ã£ãé»è©±çºä¿¡ãªã¯ãšã¹ãã«ããã¹ããŒããã©ã³äžã§ã®é話ã®éå§ã é話ã®å€±æãé話ã®çµäºç¶æ ããåšèŸºæ©åšã«éç¥ããã€ãã³ããååŸããã |
PUT /gotapi/phone/onConnect | ã¹ããŒããã©ã³ã«å¯ŸããŠè¡ã£ãé»è©±çºä¿¡ãªã¯ãšã¹ãã«ããã¹ããŒããã©ã³äžã§ã®é話ã®éå§ã é話ã®å€±æãé話ã®çµäºç¶æ ããåšèŸºæ©åšã«éç¥ããã€ãã³ããéå§ããã |
DELETE /gotapi/phone/onConnect | ã¹ããŒããã©ã³ã«å¯ŸããŠè¡ã£ãé»è©±çºä¿¡èŠæ±ã«ããã¹ããŒããã©ã³äžã§ã®é話ã®éå§ã é話ã®å€±æãé話ã®çµäºç¶æ ããåšèŸºæ©åšã«éç¥ããã€ãã³ããåæ¢ããã |
POST /gotapi/phone/rejectCall | ã¹ããŒããã©ã³ã«å¯ŸããŠçä¿¡æåŠããªã¯ãšã¹ãããã |
PUT /gotapi/phone/set | ã¹ããŒããã©ã³ã«å¯ŸããŠé»è©±ã«é¢ããèšå®é ç®(ãµã€ã¬ã³ãã»ãããŒã»é³ãã) ã®èšå®ããªã¯ãšã¹ãããã |
one-shot
ã¹ããŒããã©ã³ã«å¯ŸããŠçä¿¡å¿çããªã¯ãšã¹ãããã
åœéé»è©±ã®å¯Ÿå¿ãSIMã«ãŒãã«ããå¶éãªã©ã«ã€ããŠã¯ã ããã€ã¹ãã©ã°ã€ã³åŽã®ä»æ§ã«ä»»ãããã®ãšããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
phoneNumber | string | No | çºä¿¡å
ã®é»è©±çªå·ã onCallStateChange ã€ãã³ãã§åä¿¡ããé»è©±çªå·ããã®ãŸãŸæå®ããããšã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
one-shot
ã¹ããŒããã©ã³ã«å¯ŸããŠé»è©±çºä¿¡ããªã¯ãšã¹ãããã
åœéé»è©±ã®å¯Ÿå¿ãSIMã«ãŒãã«ããå¶éãªã©ã«ã€ããŠã¯ã ããã€ã¹ãã©ã°ã€ã³åŽã®ä»æ§ã«ä»»ãããã®ãšããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
phoneNumber | string | Yes | é»è©±çªå·ãé»è©±çªå·ã瀺ãæååãæåã«ã¯æ°åã®0ã9ã®ã¿ã䜿çšå¯èœã é·ãã¯11æ¡ãŸãã¯13æ¡ã®ãããããšããã11æ¡ã¯åœå é»è©±ã13æ¡ã¯åœéé»è©±ãšããŠæ±ãã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
one-shot
çŸåšã®é話ç¶æ ãååŸããã
çŸåšã®é話ç¶æ ã«å€åããªãå Žåã¯ã ãã©ã°ã€ã³åŽã§ãã£ãã·ã¥ããŠããææ°ã®é話ç¶æ ã1ã€ååŸããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
||||||||||
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã | ||||||||||
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã | ||||||||||
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã | ||||||||||
é話ç¶æ | state | string | Yes | çžæå
ãšã®é話ã®ç¶æ
ã瀺ãã
|
||||||||||
é»è©±çªå· | phoneNumber | string | Yes | çžæå ã®é»è©±çªå·ãæ°å以å€ã®èšå·ã¯å«ããªãã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "state" : "ringing", "phoneNumber" : "090XXXXXXXX" }
one-shot
ã¹ããŒããã©ã³ã«å¯ŸããŠé話çµäºããªã¯ãšã¹ãããã
åœéé»è©±ã®å¯Ÿå¿ãSIMã«ãŒãã«ããå¶éãªã©ã«ã€ããŠã¯ã ããã€ã¹ãã©ã°ã€ã³åŽã®ä»æ§ã«ä»»ãããã®ãšããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
phoneNumber | string | No | çºä¿¡å
ã®é»è©±çªå·ã onCallStateChange ã€ãã³ãã§åä¿¡ããé»è©±çªå·ããã®ãŸãŸæå®ããããšã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
one-shot
é話ç¶æ ã®å€æŽéç¥ã€ãã³ãã®ãã£ãã·ã¥ãååŸããã
ãã©ã°ã€ã³åŽã§ãã£ãã·ã¥ããŠããææ°ã®ã€ãã³ãã¡ãã»ãŒãžã1ã€ååŸããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
||||||||||
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã | ||||||||||
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã | ||||||||||
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã | ||||||||||
é話ç¶æ | state | string | Yes | çžæå
ãšã®é話ã®ç¶æ
ã瀺ãã
|
||||||||||
é»è©±çªå· | phoneNumber | string | Yes | çžæå ã®é»è©±çªå·ãæ°å以å€ã®èšå·ã¯å«ããªãã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "state" : "ringing", "phoneNumber" : "090XXXXXXXX" }
event
é話ç¶æ ã®å€æŽéç¥ã€ãã³ããéå§ããã
ã¹ããŒãããã€ã¹ã§ãµããŒãããŠããªããã©ã¡ãŒã¿ãããå Žåã«ã¯ã ãã®ãã©ã¡ãŒã¿ãçç¥ããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
interval | long | No | ããã€ã¹ãã©ã°ã€ã³ãã€ãã³ããéä¿¡ããééã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ãµãŒãã¹ID | serviceId | string | Yes | ã€ãã³ããéä¿¡ãããµãŒãã¹ã®ID | ||||||||||
ãããã¡ã€ã«å | profile | string | Yes | ãããã¡ã€ã«åã | ||||||||||
ã€ã³ã¿ãŒãã§ãŒã¹å | interface | string | Yes | ã€ã³ã¿ãŒãã§ãŒã¹åã | ||||||||||
ã¢ããªãã¥ãŒãå | attribute | string | Yes | ã¢ããªãã¥ãŒãåã | ||||||||||
é話ç¶æ | state | string | Yes | çžæå
ãšã®é話ã®ç¶æ
ã瀺ãã
|
||||||||||
é»è©±çªå· | phoneNumber | string | Yes | çžæå ã®é»è©±çªå·ãæ°å以å€ã®èšå·ã¯å«ããªãã |
{ "serviceId" : "Host.exampleId.localhost.deviceconnect.org", "profile" : "phone", "attribute" : "onconnect", "state" : "ringing", "phoneNumber" : "090XXXXXXXX" }
event
é話ç¶æ ã®å€æŽéç¥ã€ãã³ããåæ¢ããã
ã¹ããŒãããã€ã¹ã§ãµããŒãããŠããªããã©ã¡ãŒã¿ãããå Žåã«ã¯ã ãã®ãã©ã¡ãŒã¿ãçç¥ããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
one-shot
ã¹ããŒããã©ã³ã«å¯ŸããŠè¡ã£ãé»è©±çºä¿¡ãªã¯ãšã¹ãã«ããã¹ããŒããã©ã³äžã§ã®é話ã®éå§ã é話ã®å€±æãé話ã®çµäºç¶æ ããåšèŸºæ©åšã«éç¥ããã€ãã³ããååŸããã
çŸåšã®é話ç¶æ ã«å€åããªãå Žåã¯ã ãã©ã°ã€ã³åŽã§ãã£ãã·ã¥ããŠããææ°ã®é話ç¶æ ã1ã€ååŸããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ | |
---|---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
|
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã | |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã | |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã | |
é»è©±æ©èœã®ç¶æ | phoneStatus | object | Yes | é»è©±æ©èœã®ç¶æ ãä¿æãããªããžã§ã¯ãã ç¹å®ã®çžæå ãšã®é話ç¶æ ã®å€åãéç¥ããã | |
é»è©±çªå· | phoneNumber | string | Yes | çžæå ã®é»è©±çªå·ã瀺ãæååãæåã«ã¯æ°åã®0ã9ã®ã¿ã䜿çšå¯èœã é·ãã¯11æ¡ãŸãã¯13æ¡ã®ãããããšããã 11æ¡ã¯åœå é»è©±ã13æ¡ã¯åœéé»è©±ãšããŠæ±ãã | |
é話ç¶æ | state | float | Yes | é話ç¶æ
ã瀺ãå®æ°ã 0: é話éå§ 1: é話倱æ 2: é話çµäº |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "phoneStatus" : { "phoneNumber" : 2739128, "state" : 2 } }
event
ã¹ããŒããã©ã³ã«å¯ŸããŠè¡ã£ãé»è©±çºä¿¡ãªã¯ãšã¹ãã«ããã¹ããŒããã©ã³äžã§ã®é話ã®éå§ã é話ã®å€±æãé話ã®çµäºç¶æ ããåšèŸºæ©åšã«éç¥ããã€ãã³ããéå§ããã
ã¹ããŒãããã€ã¹ã§ãµããŒãããŠããªããã©ã¡ãŒã¿ãããå Žåã«ã¯ã ãã®ãã©ã¡ãŒã¿ãçç¥ããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
interval | long | No | ããã€ã¹ãã©ã°ã€ã³ãã€ãã³ããéä¿¡ããééã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ | |
---|---|---|---|---|---|
ãµãŒãã¹ID | serviceId | string | Yes | ã€ãã³ããéä¿¡ãããµãŒãã¹ã®ID | |
ãããã¡ã€ã«å | profile | string | Yes | ãããã¡ã€ã«åã | |
ã€ã³ã¿ãŒãã§ãŒã¹å | interface | string | Yes | ã€ã³ã¿ãŒãã§ãŒã¹åã | |
ã¢ããªãã¥ãŒãå | attribute | string | Yes | ã¢ããªãã¥ãŒãåã | |
é»è©±æ©èœã®ç¶æ | phoneStatus | object | Yes | é»è©±æ©èœã®ç¶æ ãä¿æãããªããžã§ã¯ãã ç¹å®ã®çžæå ãšã®é話ç¶æ ã®å€åãéç¥ããã | |
é»è©±çªå· | phoneNumber | string | Yes | çžæå ã®é»è©±çªå·ã瀺ãæååãæåã«ã¯æ°åã®0ã9ã®ã¿ã䜿çšå¯èœã é·ãã¯11æ¡ãŸãã¯13æ¡ã®ãããããšããã 11æ¡ã¯åœå é»è©±ã13æ¡ã¯åœéé»è©±ãšããŠæ±ãã | |
é話ç¶æ | state | float | Yes | é話ç¶æ
ã瀺ãå®æ°ã 0: é話éå§ 1: é話倱æ 2: é話çµäº |
{ "serviceId" : "Host.exampleId.localhost.deviceconnect.org", "profile" : "phone", "attribute" : "onconnect", "phoneStatus" : { "phoneNumber" : 2739128, "state" : 2 } }
event
ã¹ããŒããã©ã³ã«å¯ŸããŠè¡ã£ãé»è©±çºä¿¡èŠæ±ã«ããã¹ããŒããã©ã³äžã§ã®é話ã®éå§ã é話ã®å€±æãé話ã®çµäºç¶æ ããåšèŸºæ©åšã«éç¥ããã€ãã³ããåæ¢ããã
ã¹ããŒãããã€ã¹ã§ãµããŒãããŠããªããã©ã¡ãŒã¿ãããå Žåã«ã¯ã ãã®ãã©ã¡ãŒã¿ãçç¥ããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
one-shot
ã¹ããŒããã©ã³ã«å¯ŸããŠçä¿¡æåŠããªã¯ãšã¹ãããã
åœéé»è©±ã®å¯Ÿå¿ãSIMã«ãŒãã«ããå¶éãªã©ã«ã€ããŠã¯ã ããã€ã¹ãã©ã°ã€ã³åŽã®ä»æ§ã«ä»»ãããã®ãšããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
phoneNumber | string | No | çºä¿¡å
ã®é»è©±çªå·ã onCallStateChange ã€ãã³ãã§åä¿¡ããé»è©±çªå·ããã®ãŸãŸæå®ããããšã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }
one-shot
ã¹ããŒããã©ã³ã«å¯ŸããŠé»è©±ã«é¢ããèšå®é ç®(ãµã€ã¬ã³ãã»ãããŒã»é³ãã) ã®èšå®ããªã¯ãšã¹ãããã
ã¹ããŒããã©ã³ã®OSããŒãžã§ã³ã«ãã£ãŠã¯ãèšå®é ç®ã®æåã«éããã§ãå Žåãããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
mode | integer | Yes | é»è©±ã®ã¢ãŒããé»è©±ã®ã¢ãŒããæå® 0:ãµã€ã¬ã³ã 1:ãã㌠2:é³ãã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0: æ£åžžå¿ç 0以å€: ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0" }