API token auth request is failing
I am doing a research to integrate OpenSolar to one of our product. For the research purposes I have created a test organization. Then I tried to test the following API to get a auth token.
$ curl "https://api.opensolar.com/api-token-auth/"
-H "Content-Type: application/json"
--request POST
-d '{"username":"arnie@illbeback.com","password":"gettothechopper", "token": "1234"}'
But when I try to test it with postman I am getting "GET" not allowed error, but I am sending a POST request.
To confirm this further, I have tried this on a small node js script as well. I get the same error again
Am I missing something here ? Note that I don't send the token property as I don't have 2FA enabled in my account.
Any help would be really appreciate.
Thanks
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar