Hi @jeiden
Thanks again for your excellent reply.
An improved JS SDK would be awesome as that’s what I’m used to using but I fully understand you guys are busy!
I’ve created my OAuth credentials all good, so now I’m on to creating a customer. I’ve tried to emulate what another user here was doing Creating a New Customer (two legged auth) - Now Working
Although this was with two legged auth and using Httparty, of which I’m not familiar with.
I’m trying this so far:
$.post(https://api.particle.io/v1/orgs/myCompany/customers,{
client_id: myClientID,
email: email,
password: password,
response_type: token
});
However I feel that I’m not passing authentication information properly. The docs say it should be passed as an HTTP Basic Auth Header, however I understand that I only need to pass my client ID to create a customer right? Or do I need to authenticate as well using my personal email & password?
Thanks in advance!