im going to use doorkeeper and devise to create authenticated json api. for that i started to use this http://ift.tt/2byYCDw tutorial. i did it several time but get error and error: now i started again and stopped on this command. i don't know why i can not get result from this command: i copy and past this in my ubuntu 16.04 terminal and get no result(i also run my rails s on my app).
curl -X POST -d 'grant_type=password&email=user@example.com&password=yourpassword’ localhost:3000/oauth/token
it just show me nothing only terminal and just waiting to add new parameter and show > sign.
i also trying to use postman with this localhost:3000/oauth/token URL and get this:
{"error":"invalid_request","error_description":"The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed."}
Aucun commentaire:
Enregistrer un commentaire