Notification - TakayukiHoshi1984/DeviceConnect-Spec GitHub Wiki
ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãæäœããæ©èœã
API | æŠèŠ |
---|---|
POST /gotapi/notification/notify | ã¹ããŒãããã€ã¹ã«ããŒãã£ãã£ã±ãŒã·ã§ã³ã®è¡šç€ºãªã¯ãšã¹ããéä¿¡ããã |
DELETE /gotapi/notification/notify | ã¹ããŒãããã€ã¹ã«ããŒãã£ãã£ã±ãŒã·ã§ã³ã®æ¶å»ãªã¯ãšã¹ããéä¿¡ããã |
GET /gotapi/notification/onClick | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãã¯ãªãã¯ãããããšãéç¥ããã€ãã³ãã ååŸããã |
PUT /gotapi/notification/onClick | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãã¯ãªãã¯ãããããšãéç¥ããã€ãã³ãã éå§ããã |
DELETE /gotapi/notification/onClick | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãã¯ãªãã¯ãããããšãéç¥ããã€ãã³ãã åæ¢ããã |
GET /gotapi/notification/onClose | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãæ¶å»ãããããšãéç¥ããã€ãã³ãã ååŸããã |
PUT /gotapi/notification/onClose | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãæ¶å»ãããããšãéç¥ããã€ãã³ãã éå§ããã |
DELETE /gotapi/notification/onClose | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ãæ¶å»ãããããšãéç¥ããã€ãã³ãã åæ¢ããã |
GET /gotapi/notification/onError | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³æäœã§ãšã©ãŒãçºçããããšã éç¥ããã€ãã³ããååŸããã |
PUT /gotapi/notification/onError | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³æäœã§ãšã©ãŒãçºçããããšã éç¥ããã€ãã³ããéå§ããã |
DELETE /gotapi/notification/onError | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³æäœã§ãšã©ãŒãçºçããããšã éç¥ããã€ãã³ããåæ¢ããã |
GET /gotapi/notification/onShow | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ã衚瀺ãããããšãéç¥ããã€ãã³ãã ååŸããã |
PUT /gotapi/notification/onShow | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ã衚瀺ãããããšãéç¥ããã€ãã³ãã éå§ããã |
DELETE /gotapi/notification/onShow | ã¹ããŒãããã€ã¹ã®ããŒãã£ãã£ã±ãŒã·ã§ã³ã衚瀺ãããããšãéç¥ããã€ãã³ãã åæ¢ããã |
one-shot
ã¹ããŒãããã€ã¹ã«ããŒãã£ãã£ã±ãŒã·ã§ã³ã®è¡šç€ºãªã¯ãšã¹ããéä¿¡ããã
ããŒãã£ãã£ã±ãŒã·ã§ã³ã®è¡šç€ºãªã¯ãšã¹ãã®å°éæåŠãå¿çãšããŠè¿åŽãã ããŒãã£ãã£ã±ãŒã·ã§ã³ã®è¡šç€ºå®äºãåŸ
ã£ãŠå¿çãããããã§ã¯ãªãã
ããŒãã£ãã£ã±ãŒã·ã§ã³ã®è¡šç€ºæ¹æ³ã¯è¡šç€ºãªã¯ãšã¹ããåããã¹ããŒãããã€ã¹ã«äŸåããã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
type | integer | Yes | éç¥ã¿ã€ããéç¥ã®ã¿ã€ããèå¥ããã 0: é³å£°é話çä¿¡ 1: ã¡ãŒã«çä¿¡ 2: SMSçä¿¡ 3: ã€ãã³ã |
dir | string | No | åããã¡ãã»ãŒãžã®æåã®åãã auto: èªå rtl: å³ããå·Š ltr: å·Šããå³ |
lang | string | No | èšèªãã¡ãã»ãŒãžã®èšèªã ref. BCP47 |
body | string | No | 衚瀺ãããæååã |
tag | string | No | ã¿ã°ãä»»æã¿ã°æåå ã«ã³ã(,)åºåãã§ä»»æåæ°æå®ã |
uri | string | No | ã¢ã€ã³ã³ãã¢ã€ã³ã³ãã¡ã€ã«ã®URIã |
è«çå | ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|---|
åŠççµæ | result | integer | Yes | 0:æ£åžžå¿ç 0以å€:ç°åžžå¿ç |
ã·ã¹ãã å | product | string | Yes | DeviceConnectã·ã¹ãã ã®ååã |
ã·ã¹ãã ããŒãžã§ã³ | version | string | Yes | DeviceConnectã·ã¹ãã ã®ããŒãžã§ã³åã |
眲å | hmac | string | No | ã¬ã¹ãã³ã¹ã«å¯Ÿãã眲åã ã¢ããªã±ãŒã·ã§ã³åŽããäºåã«HMACããŒãå ±æãããŠããå Žåã¯å¿ é ã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ãŠããŒã¯ãªæååã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "notificationId" : 123456 }
one-shot
ã¹ããŒãããã€ã¹ã«ããŒãã£ãã£ã±ãŒã·ã§ã³ã®æ¶å»ãªã¯ãšã¹ããéä¿¡ããã
ããŒãã£ãã£ã±ãŒã·ã§ã³ã®æ¶å»ãªã¯ãšã¹ãã®å°éæåŠãå¿çãšããŠè¿åŽãã ããŒãã£ãã£ã±ãŒã·ã§ã³ã®æ¶å»å®äºãåŸ ã£ãŠå¿çãããããã§ã¯ãªãã
ç©çå | ããŒã¿å | å¿ é | 説æ |
---|---|---|---|
serviceId | string | Yes | ãµãŒãã¹IDãååŸå¯Ÿè±¡ã¹ããŒãããã€ã¹ |
notificationId | 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ããŒãå ±æãããŠããå Žåã¯å¿ é ã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "notificationId" : 123456 }
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 | ã¢ããªãã¥ãŒãåã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "serviceId" : "Host.exampleId.localhost.deviceconnect.org", "profile" : "notification", "attribute" : "onclick", "notificationId" : 123456 }
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ããŒãå ±æãããŠããå Žåã¯å¿ é ã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "notificationId" : 123456 }
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 | ã¢ããªãã¥ãŒãåã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "serviceId" : "Host.exampleId.localhost.deviceconnect.org", "profile" : "notification", "attribute" : "onclose", "notificationId" : 123456 }
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ããŒãå ±æãããŠããå Žåã¯å¿ é ã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "notificationId" : 123456 }
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 | ã¢ããªãã¥ãŒãåã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "serviceId" : "Host.exampleId.localhost.deviceconnect.org", "profile" : "notification", "attribute" : "onerror", "notificationId" : 123456 }
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ããŒãå ±æãããŠããå Žåã¯å¿ é ã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "result" : 0, "product" : "Example System", "version" : "1.0.0", "notificationId" : 123456 }
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 | ã¢ããªãã¥ãŒãåã |
ããŒãã£ãã£ã±ãŒã·ã§ã³ID | notificationId | string | Yes | ããŒãã£ãã£ã±ãŒã·ã§ã³ãèå¥ããIDã |
{ "serviceId" : "Host.exampleId.localhost.deviceconnect.org", "profile" : "notification", "attribute" : "onshow", "notificationId" : 123456 }
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" }