curlxively

How to activate Xively device via Curl


Is it possible to activate a Xively device using cURL and if so could someone please post an example ?

The device is working well under the development account but I can't work out how to activate it.

thanks


Solution

  • It should be the following one based on their documentation:

    curl -k -L https://api.xively.com/v2/devices/ACTIVATION_CODE/activate -H "X-ApiKey: API_KEY_HERE"
    

    Change ACTIVATION_CODE and API_KEY_HERE from the above url.

    If you have problem with running the command, run it with adding -v option. And show us the verbose printout.