Message notification API 샘플예제

전체 단말 메시지 전달

  • REQUEST (CURL / POST)

curl --location --request POST 'https://apis.openapi.sk.com/api/ovs/v20/messasge/company/f58ccd10-a0bd-11ea-a9b8-ff6a8104c32f' \ --header 'Content-Type: application/json' \ --header 'X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzeXNhZG1pbkB0aG…' \ --header 'appKey: ***********************' \ --data-raw '{ "type": 9999, "timestamp": 1590654942693, "message": "test message all" }
  • RESPONSE (200 | application/json)

{ "message": { "type": 9999, "timestamp": 1590654942693, "message": "test message all" }, "devices": [ { "serialNo": "uio35fine1236" }, { "serialNo": "uio35123451234512345" } ] }
  • RESPONSE (BODY)
KeyTypeDescription
typeinttype of message (OTA, event ID et al.)
timestampintlinux epoch time in miliseconds
messagestringmessage contents
serialNostringthe device which the message was delivered



단말별 메시지 전달

  • REQUEST (CURL / POST)

curl --location --request POST 'https://apis.openapi.sk.com/api/ovs/v20/message/device/uio35fine1236' \ --header 'Content-Type: application/json' \ --header 'X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzeXNhZG1pbkB0aG…' \ --header 'appKey: ***********************' \ --data-raw '{ "type": 9999, "timestamp": 1590654942693, "message": "test message" }'
  • RESPONSE (200 | application/json)

{ "message": { "type": 9999, "timestamp": 1590654942693, "message": "test message" }, "serialNo": "uio35fine1236" }
  • RESPONSE (BODY)

KeyTypeDescription
typeinttype of message (OTA, event ID et al.)
timestampintlinux epoch time in miliseconds
messagestringmessage contents
serialNostringthe device which the message was delivered