These are chat archives for ushahidi/Community

20th
May 2016
Ushbot
@ushbot
May 20 2016 13:12
[Mariah, Ushahidi] Hello Ush
[Mariah, Ushahidi] @ushbot
[Angela Oduor Lungati, Ushahidi] hi mariah
[Angela Oduor Lungati, Ushahidi] how can we help?
[Mariah, Ushahidi] I need to talk to dev guys
[Mariah, Ushahidi] regarding API
[Angela Oduor Lungati, Ushahidi] sure. go ahead and type your questions in here
Ushbot
@ushbot
May 20 2016 13:23
[Mariah, Ushahidi] okay but I think they're not online?
Ushbot
@ushbot
May 20 2016 13:30
[Angela Oduor Lungati, Ushahidi] We have a couple of devs who’ll be onlines shortly
[Mariah, Ushahidi] okay thank you
[Mariah, Ushahidi] I will just wait for them
[Angela Oduor Lungati, Ushahidi] @davidlosada: would you be able to help Maria with some questions on the api?
[Angela Oduor Lungati, Ushahidi] i’m also tagging @jason and @will
[David Losada, Ushahidi] yea, possibly. I’m also exploring the API myself and I’ve learned a little bit. Hi Mariah!
[Will Doran, Ushahidi] Hi Mariah, how can we help?
[Angela Oduor Lungati, Ushahidi] Hey Mariah, looks like both @will and @davidlosada are online and can help
[Mariah, Ushahidi] Hi Will good to see you
[Mariah, Ushahidi] Hi David!
[Will Doran, Ushahidi] Hi
[Mariah, Ushahidi] I need your help
[Mariah, Ushahidi] We're creating a hybrid app for mobile
[Mariah, Ushahidi] I noticed that there's no API documentation yet
[Mariah, Ushahidi] so I need to ask directly from the devs
Ushbot
@ushbot
May 20 2016 13:35
[David Losada, Ushahidi] yes indeed Mariah , what operations would you like to do with the API?
Ushbot
@ushbot
May 20 2016 13:46
[Will Doran, Ushahidi] What do you want to accomplish from the mobile app? OAuth, CRUD for posts/users or will it be only for submission?
[Will Doran, Ushahidi] Mariah ^
[Mariah, Ushahidi] Will and David hold on I will post list of APIs we need
[Mariah, Ushahidi] (1)  Register
(2)    Login;  (3)    Get all posts;  (4)  Post a report;   (5)   Get All Post types;  (6)  Get All Post Categories   (7)  Get Notifications (How you get notifications & What you get notified about)   (8)   Get Maps (posts)   (9)   Get User Info  (10)  Update Password       (11)   Save User Info Changes   (12)  Get End-user Licence Agreement (EULA)   (13)  Is there anything for video/ photo uploads?
Ushbot
@ushbot
May 20 2016 13:53
[David Losada, Ushahidi] mm ok, I guess we’ll be going little by little :slightly_smiling_face: I’ve written client code for 2 and 3 myself . Are you familiar with oAuth Mariah?
[David Losada, Ushahidi] access token, refresh token etc.. because that’s how login and authentication of further requests work
Ushbot
@ushbot
May 20 2016 14:08
[Will Doran, Ushahidi] @davidlosada: if you had time to share example code with mariah that would be wonderful. If there is anything complex that is non-obvious I’m happy to help but I need to keep going with mustang code
[Will Doran, Ushahidi] Mariah: we have an image upload feature for posts now but not video as of yet
[Will Doran, Ushahidi] it works via the media api
[Mariah, Ushahidi] hold on for a sec gentlemen
[Will Doran, Ushahidi] actually I could way to see how the apis work is to work from these tests:
[Will Doran, Ushahidi] for example this describes an OAuth login
[Will Doran, Ushahidi] You can also see these behaviours within the client but they are not collected in a single place
Ushbot
@ushbot
May 20 2016 16:32
[David Losada, Ushahidi] FYI, I captured the conversation in the issue that we have for creating the API documentation: ushahidi/platform#663