I was wondering if there is an endpoint/api where I can pass in my Spark.io email address and password and have it return the access_token to make the API calls?
I know the documentation mentions it using OAuth 2 but I didn’t see any endpoints/api.
Since I had no reply I took it upon myself to dig a little deeper. Here is what I found:
Authentication
POST to https://www.spark.io/sign-in
Headers: Content-Type: application/json
Body: {“username”:“youremailaddress”,“password”:“spark_password”}
I just tried this and it works However is there any reason you wouldn’t just log into Spark Build http://spark.io/build and look at the Settings page? I’m guessing you are working on completely automating some kind of mesh network or something?