These are chat archives for ushahidi/Community

17th
Apr 2016
Moses
@MosesTroyer
Apr 17 2016 20:39
Hi devs, been trying to work with the api recently and I was hoping to get some quick help - it looks like I need a client_id and a client_secret, but I'm not sure how to register for one. The server is hosted on Heroku, if it helps. Thank you!
Ushbot
@ushbot
Apr 17 2016 20:44
[Robbie Mackay, Ushahidi] hi there
[Robbie Mackay, Ushahidi] at the moment we just have a hard coded client+secret we use for the JS client - since thats effectively public in the JS anyway.
To create another one you can run "bin/ushahidi oauth:client create -c newclientname"
[Robbie Mackay, Ushahidi] I think for heroku you can wrap that with "heroku run" and it should work
[Robbie Mackay, Ushahidi] But I haven't actually done it before.
Moses
@MosesTroyer
Apr 17 2016 20:50
hm, that's the id and secret in here, correct?
Ushbot
@ushbot
Apr 17 2016 20:50
[Robbie Mackay, Ushahidi] yup
Moses
@MosesTroyer
Apr 17 2016 20:51
Thank you very much! Appreciate it!
Ushbot
@ushbot
Apr 17 2016 20:51
[Robbie Mackay, Ushahidi] What're you building against the api? just curious
Moses
@MosesTroyer
Apr 17 2016 20:52
our android class is doing a class project, basically a lost pet finder
Ushbot
@ushbot
Apr 17 2016 20:52
[Robbie Mackay, Ushahidi] ah cool.