Our REST API uses basic HTTP authentication and we strongly advice you to do so over HTTPS. The REST API can only be used to publish data. You can make a call to https://rest.kwwika.com/TOPIC<YOUR_TOPIC> with the body of your request being name value pairs separated by & e.g.
https://rest.kwwika.com/TOPIC/KWWIKA/SANDBOX
The body of the request:
foo=bar&hello=world
So, using curl you can make the following call to publish the field "hello" with the name "world" into the /KWWIKA/SANDBOX topic:
curl -d 'hello=world' "https://rest.kwwika.com/TOPIC/KWWIKA/SANDBOX" -uYOUR_API_KEY:YOUR_DOMAIN
If this succeeds you will get a HTTP Status response of 200 and the text:
/KWWIKA/SANDBOX updated with 1 fields
Python
PHP |
|