We are now going to learn how to protect the data that was stored by your devices. Indeed, using the recipes we saw so far, anyone can log data to your devices and then retrieve this data via a simple web request.
The key to protecting your data stored on Dweet.io is to use locks. You can learn more about locks at:
Basically, you can buy a lock to protect your devices, and then to access them or log new data you will need to always provide the key associated with this lock.
The first step is to lock the device, which is done by calling the URL, passing your thing name, lock, and key:
https://dweet.io/lock/{thing_name}?lock={your_lock}&key={your_key}
To actually log data to a device protected by a lock, you need to provide the lock and the key whenever you are calling the API from the Arduino board. For example:
https://dweet.io/dweet/for/{my_locked_thing}?key={my_key}&hello=world&foo=bar
The same is then...