Looks like javascripts are disabled !
This application will not perform effectively without javascripts.
Please enable them before proceeding...

Developer API
URL: https://www.1btn.space/api/?/

All endpoints on the 1btn API require authenticating as a user. This is done by passing a username, password and challenge code in the header field for the request.

CURL example: Assumes that your button MAC is 11-22-33-44-55-66
curl -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Username: your_email_id' \
-H 'Password: your_password' \
-H 'Challenge: your_api_key' \
-X GET https://www.1btn.space/api/?/read/1btn/11-22-33-44-55-66

You can obtain your username and generate password when signing-up first time. User challenge code is available in your profile page once you login.
Create new 1btn [ PUT ]
/create/1btn/{mac-id}/{nick-name}
Create new 1btn device identified by given {mac-id} and assign a nick name {nick-name}.

example: https://www.1btn.space/api/?/create/1btn/11-22-33-44-55-66/test-button
Read 1btn details [ GET ]
/read/1btn/{mac-id}
Retrieve 1btn device details identified by given {mac-id}.

example: https://www.1btn.space/api/?/read/1btn/11-22-33-44-55-66
Read details of all 1btns [ GET ]
/read/1btn/all
Retrieve 1btn device details for all the buttons assigned to your username.

example: https://www.1btn.space/api/?/read/1btn/all
Setup SMS action [ PUT ]
/update/1btn/{mac-id}/action/text/{sms-to}/{text-message}
Update 1btn device identified by given {mac-id} and setup SMS action details. Send text-message to {sms-to}, which is fully qualified mobile phone number whith message contents as {text-message}.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/action/text/+919890198883/Hello there !
Setup email action [ PUT ]
/update/1btn/{mac-id}/action/email/{email-to}/{email-body}
Update 1btn device identified by given {mac-id} and setup email action details. Send email message to {email-to}, whith email body as {email-body}.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/action/email/email@domain.com/Hello there !
Setup tweet action [ PUT ]
/update/1btn/{mac-id}/action/tweet/{@twitter-handle}/{tweet-message}
Update 1btn device identified by given {mac-id} and setup tweet action details. Post tweet with {tweet-message} and include handle {@twitter-handle}.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/action/tweet/@some-handle/Hello there !
Setup URL invoke action [ PUT ]
/update/1btn/{mac-id}/action/invoke/{url-endpoint}/{url-parameters}
Update 1btn device identified by given {mac-id} and setup URL invoke action details. Control will be passed on to URL {url-endpoint}, with {url-parameters} in the url itself.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/action/invoke/www.url.com/?name=some_name&id=some_id
Update timing details [ PUT ]
/update/1btn/{mac-id}/time/{start-time}/{end-time}/{timezone}
Update 1btn device identified by given {mac-id} and setup a time window for operation as specified between {start-time} & {end-time} for given {timezone}.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/time/09:00/18:00/Asia%2fKolkata
Activate 1btn [ PUT ]
/update/1btn/{mac-id}/activate
Activate 1btn device identified by given {mac-id}.

example: https://www.1btn.space/api/?/read/1btn/11-22-33-44-55-66/activate
Deactivate 1btn [ PUT ]
/update/1btn/{mac-id}/deactivate
Deactivate 1btn device identified by given {mac-id}.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/deactivate
Set rate limit on 1btn event [ PUT ]
/update/1btn/{mac-id}/ratelimit/{value-in-seconds}
Set rate limit on 1btn device identified by given {mac-id} for {value-in-seconds} seconds. Giving rate-limit to 1btn means next event cannot occur before specified time has elapsed after earlier event.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/ratelimit/15
Request 1btn local reconfig [ PUT ]
/update/1btn/{mac-id}/reconfig/{1-or-0}
Set local reconfiguration flag as 1 or 0 for 1btn device identified by given {mac-id}. When set to 1, the 1btn device will enter into local wifi config mode when event is generated next time, and will reset this flag upon completion.

Note: This feature will work on 1btn only for the firmware v2 and above. If you have 1btn with v1 firmware, download latest copy of firmware from our github page.

example: https://www.1btn.space/api/?/update/1btn/11-22-33-44-55-66/reconfig/1
Trigger 1btn [ POST ]
/trigger/1btn/{mac-id}
Trigger 1btn device as identified by given {mac-id}. This is equivalent to pressing of button on 1btn device physically.

example: https://www.1btn.space/api/?/trigger/1btn/11-22-33-44-55-66
Delete 1btn [ DELETE ]
/delete/1btn/{mac-id}
Delete 1btn device as identified by given {mac-id}. This action is not reversible.

example: https://www.1btn.space/api/?/delete/1btn/11-22-33-44-55-66