Open Platform
Skip to content

Query the init status of the gateway ​

https://cnapi.sciener.com/v3/gateway/isInitSuccess

Request this API after you calling the APP SDK method to add a gateway(in 3 minutes), to check whether it has been added successfully, it's success if gatewayId is returned.

If there is a new gateway with the same gatewayNetMac added to your account in the last 3 minutes, this API will return it's gateway ID.

Notice:If you have not named the gateway with it's gatewayNetMac when init the gateway by APP SDK,request this API with parameter gatewayNetMac set to your specific name.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

javascript
curl --location -g --request POST 'https://cnapi.sciener.com/v3/gateway/isInitSuccess' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'gatewayNetMac=C1:30:E7:F4:97:17' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
gatewayNetMacStringYThe Mac which you will get when calling the APP SDK method to add a gateway
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
gatewayIdIntGateway ID
{
    "gatewayId": 5678}
CopyRight © 2012-2026 Sciener.All Rights Reserved