These are chat archives for ushahidi/Community

5th
Jul 2017
Kenji
@Kenji-K
Jul 05 2017 12:49
In what platform is @davidlosada available? I don't see him in gitter
azizfall
@azizfall
Jul 05 2017 15:54
hello so I am trying to make a post request to https://api.crowdmap.com/v1/users/3/followers/, but when I do it responds with a 401 status saying "error": "This action requires a valid session.", how would I go about solving this, I am using postman so I tried setting a cookie with key being my user_id and value being my session_id but it still gave me the same error
Ushbot
@ushbot
Jul 05 2017 18:58
[Robbie Mackay, Ushahidi] @azizfall I'm not sure to be honest. We don't really maintain the Crowdmap API at all anymore.
I think if you look at the requests it makes in the web UI, it requests a session token and sends that in an Authorization header with every request. But I don't know what the process is for getting that token
azizfall
@azizfall
Jul 05 2017 19:09
yeah I did that, I obtained the session id by making an API request to a different URL, but documentation did not specify how to pass this token to request, I have passed in the session id as form request, url encoded, and even in the header but none gave a valid response
Ushbot
@ushbot
Jul 05 2017 19:23
[Robbie Mackay, Ushahidi] Are you building something new on the Crowdmap API? or just trying to get existing data?
[Robbie Mackay, Ushahidi] I think the session is sent as a query parameter ?session=mysessionid
azizfall
@azizfall
Jul 05 2017 20:25
I am building something new on crowd map API
azizfall
@azizfall
Jul 05 2017 20:30
but the query ?session=myssesionid does not work for me for the post request to https://api.crowdmap.com/v1/users/3/followers/
Ushbot
@ushbot
Jul 05 2017 21:29
[Robbie Mackay, Ushahidi] If you're building something new, I wouldn't recommend it TBH, that API is now unmaintained. All our development effort are focused on Ushahidi v3
azizfall
@azizfall
Jul 05 2017 22:33
does Ushahidi v3 it also support the crowd map features