I have been breaking my head over curl and the js api to setup the product
So far
- I created the product in the console.
- Added simple authentication with full scope permission.
- Added device id to devices.
- Made an webapp using the js api that can claim and i can now see the owners email address under the owner column of the Devices section.
- But my customers section remain empty. I am having some difficulty understanding how to add the customer in the console.
- I can also not see any publish events from the device. Neither in the customer account nor in the main account. I have tried using curl to add customer
curl -k -X POST -u exampleapp-xxxx-1132:7xxxxxxxxxxxxxxxxxxxxx -d\
email="axxx@gmail.com" -d password="password" https://api.particle.io/v1/products/:xxxx/customers
The above gives me an error
0{“ok”:false,“error”:“Product not found.”}