Monthly Archives: May 2015

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>