Development against the joind.in-API

Reminder to my future self:

Obtaining an authentication token from the joind.in-API using the vagrant-box via curl:

curl --data "{\"grant_type":"password","username":"<username>","password":"<password>","client_id":"web2","client_secret":"web2secret"}" -H "Content-Type: application/json" -H "Accept: application/json" http://api.dev.joind.in:8080/v2.1/token

And then using that token via curl:

curl -H "Authorization: oauth <token>" -H "Content-Type: application/json" -H "Accept: application/json" --data "{}" http://api.dev.joind.in:8080/v2.1/<endpoint>


 
 architectural daughtsman, brother, developer, father, husband, master of forestry sciences, scout


Leave a Reply

Your email address will not be published. Required fields are marked *