Data of Device
Store Data of a Particular Device
Request
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name
or
https://platform.antares.id:8443/~/antares-cse/your-device-ID/
Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289
Method
POST
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json;ty=4
Accept
application/json
Body
{
"m2m:cin": {
"con": "{\"key1\":\"integer-value\", \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
}
}
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name
or
https://platform.antares.id:8443/~/antares-cse/your-device-ID/
Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289
Method
POST
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml;ty=4
Accept
application/xml
Body
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<m2m:cin>
<con>{"key1":"integer-value", "key2":"string-value", "keyN":"valueN"}</con>
</m2m:cin>
</root>Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.
Response
Retrieve all Data Content of Device
Request
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&drt=2&ty=4
or
https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&drt=2&ty=4
Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&drt=2&ty=4
or
https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&drt=2&ty=4
Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml
Response
Retrieve All Data ID of Device
Request
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&ty=4&drt=1
or
https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&ty=4&drt=1
Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&ty=4&drt=1
or
https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&ty=4&drt=1
Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml
Response
Retrieve Particular Data of Device
Request
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID
or
https://platform.antares.id:8443/~/antares-cse/data-from-device-ID
Note: data-from-device-ID merupakan salah satu yang didapatkan ketika Retrieving All Data of Device ID. harus diawali dengan cin. e.g. cin-122882447
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID
or
https://platform.antares.id:8443/~/antares-cse/data-from-device-ID
Note: data-from-device-ID merupakan salah satu yang didapatkan ketika Retrieving All Data of Device ID. harus diawali dengan cin. e.g. cin-122882447
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml
Response
Result
Result
Retrieve Latest Data
Request
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json;ty=4
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml;ty=4
Accept
application/xml
Response
Result
Result
Retrieve Oldest Data
Request
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json;ty=4
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml;ty=4
Accept
application/xml
Response
Result
Result
Last updated