These are chat archives for ushahidi/Community

7th
Nov 2016
Nesp
@Nesp
Nov 07 2016 09:01
hi there! Coud you guys help me with understanding how to get the access token for using apis from a Heroku deployment? I am implementing a deployment on Linux, but in the mean time I would like to learn how to use apis from my heroku deployment. Thanks in advance!
Ushbot
@ushbot
Nov 07 2016 11:15
[David Losada, Ushahidi] hi Nesp, we’ve got some semi-official docs here to help you get started: http://github.ushahidi.org/platform/docs/api/index.html#authorization-with-oauth-2
[David Losada, Ushahidi] hi sanqian, what BACKEND_URL did you set when building the platform-client ?
[David Losada, Ushahidi] those lines you pasted are just warnings, they are expected when building in a server
Nesp
@Nesp
Nov 07 2016 12:52
@ushbot thanks a lot! :)
Nesp
@Nesp
Nov 07 2016 14:05
a question, I am sending a api request to my heroku deployment that should return all posts, but still it returns this problem: https://volunteer-aid-ihe.herokuapp.com/api/v3/posts
blob
Nesp
@Nesp
Nov 07 2016 14:10
do I need an authenitcation even if I am looking for published posts?
Nesp
@Nesp
Nov 07 2016 14:23
If I send this request: https://volunteer-aid-ihe.herokuapp.com/api/v3/oauth/token
this is what I obtain:
blob
Ushbot
@ushbot
Nov 07 2016 21:24
[David Losada, Ushahidi] yes even unprivileged operations require an authentication token, it’s just not necessary to provide any secret credentials to obtain that unprivileged token (you can think of it as a guest mode)
[David Losada, Ushahidi] the oauth endpoints live side by side with the api endpoints , the correct URL would be https://volunteer-aid-ihe.herokuapp.com/oauth/token
Nesp
@Nesp
Nov 07 2016 22:24
@ushbot thanks!