Sorry to exhume this post. I’m working through this process for simple auth. My end goal is to get a basic prototype going destined for an ionic app (angular). I am having trouble working out the curl commands to go through creating a client; customer; token etc in an effort to gain a clear understanding of what all the steps are. There is great information but it’s scattered between the guide, the reference and the community forum. Take this post. This is the only reference anywhere that explains what organization is, or where to find it. However, copying the string straight from the browser console, when I try:
curl -X POST -H “Authorization: Bearer 1234” -d name=“IonicMobileApp” -d type=installed organization=mXXXXp-v1 https://api.particle.io/v1/clients
curl: (6) Could not resolve host: organization=mXXXXp-v1
although it does return an otherwise sensible looking object:
And when I try:
curl -X POST -u ionicmobileapp-8868:1234 -d email="email@example.com" -d password=“myPAssWrd” https://api.particle.io/v1/org/mXXXXp-v1/customers
I’m more from the hardware world, so I know much of this may seem obvious. I don’t suppose anyone could point me at a guide that might help. It’s just not fitting together. ANd after this I’ll have to figure out how to squeeze this into Angular 2 for more fun and games?
Unless someone has done this in Angular 2 already. Would be nice to cut out the middle man!