Home » API

Authentication

User/pass

On our platform each device has its own user. This user is interfaced with via the API and the device token. Your user also has a token which is used for api authentication. We will call your user’s token USERTOKEN. A device’s token will be called DEVICETOKEN.

USER is the account username and PASSWORD is the account password. This will return your API token, USERTOKEN.

curl -X POST --header "Content-Type:application/json" -d '{"username":"USER", "password":"PASSWORD"}' http://api.objectsyndicate.com/api/obtain_token/

Facebook

This requires the facebook API which is used by our app and will return USERTOKEN.

curl -X POST --header "Content-Type:application/json" -d'{"token":"TOKEN"}' http://api.objectsyndicate.com/api/fbtoken/

Luciscan

Add

This will add a new luciscan to an account. It will return the uuid of the device. If a HTTP 402 is returned the account max device limit has been reached.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token USERTOKEN" -d'{"add":"TRUE"}' http://api.objectsyndicate.com/api/v1/luci/add/

Delete

Requires DEVICETOKEN as you are specifying which unit to delete.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token DEVICETOKEN" -d'{"delete":"TRUE"}' http://api.objectsyndicate.com/api/v1/luci/delete/

List

Returns a list of luciscans by UUID and token.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token USERTOKEN" -d'{"list_tokens":"TRUE"}' http://api.objectsyndicate.com/api/v1/luci/list/

Post

LAT is latitude LOG is longitude light units is watts per meters squared.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token DEVICETOKEN" -d "{'location':'LAT_LOG', 'wm450':999.00, 'wm500':999.00, 'wm550':999.00, 'wm570':999.00, 'wm600':999.00, 'wm610':999.00, 'wm650':999.00, 'wm680':999.00, 'wm730':999.00, 'wm760':999.00, 'wm810':999.00, 'wm860':999.00}" http://api.objectsyndicate.com/api/v1/luci/post/

ioTank

Add

This will add a new ioTank to an account. It will return the uuid of the device. If a HTTP 402 is returned the account max device limit has been reached.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token USERTOKEN" -d'{"add":"TRUE"}' http://api.objectsyndicate.com/api/v1/add/

Delete

Requires DEVICETOKEN as you are specifying which unit to delete.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token DEVICETOKEN" -d'{"delete":"TRUE"}' http://api.objectsyndicate.com/api/v1/delete/

List

Returns a list of ioTanks by UUID and token.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token USERTOKEN" -d'{"list_tokens":"TRUE"}' http://api.objectsyndicate.com/api/v1/list/

Post

Temperatures are always post in celsius and are converted server-side based on the account settings.   Humidity is in percent. UV is UV index. L is Lux.

curl -X POST --header "Content-Type:application/json" --header "Authorization: Token DEVICETOKEN" -d "{'t1':26.45 , 't2':28.00 , 'h':20.00, 'uv':-0.07, 'l':1.66}" http://api.objectsyndicate.com/api/v1/post/