I'm trying to use cURL to do the authentication and get an access token but have been unable to get the proper format together. I am trying:
curl -H "Content-Type: application/json" -d {"grant_type" : "password", "client_id" : "***", "client_secret" : "***", "email" : "***", "password" : "***" } https://owner-api.teslamotors.com/oauth/token
Any help would be much appreciated.
Thanks!
curl -H "Content-Type: application/json" -d {"grant_type" : "password", "client_id" : "***", "client_secret" : "***", "email" : "***", "password" : "***" } https://owner-api.teslamotors.com/oauth/token
Any help would be much appreciated.
Thanks!