Hi. I’m working a product. I create a product named smart-plug and add 2 device under this tab over dashboard. And i thing Two-Legged Authentication best option for me. I read documentation and create an OAuth Client like that;
curl -X POST -H "Authorization: Bearer 1234" -d name=abteknoloji -d type=installed \ -d organization=abteknoloji https://api.particle.io/v1/clients
And create a shadow customer account
curl -X POST -u "cliend-id:secret" -d email@example.com \ -d no_password=true https://api.particle.io/v1/orgs/abteknoloji/customers
Now! I must be create Claim Code for this customer with this customer’s access token. And then particle system will send that claim code to the device. But which device? How does Particle system know which device be claimed. I cant understand this point.