These are chat archives for ushahidi/Community

16th
Nov 2016
tameen
@tameen
Nov 16 2016 09:26
@Nesp no problem. What i did : I installed Postman. I pasted this link http://tameenexample.com/oauth/token and it results in this:
error.png
TheNiqabiCoderMum
@nqcm
Nov 16 2016 09:29
ok i have decided to go ahead and actually start installing ushahidi today, i hv read up everything i could on setting up and configuration. but i will need help as i get stuck. one question i want to ask upfront, i want to run ushahidi on a subdomain. does that change anything? and what and where i will need to change things? thanks
tameen
@tameen
Nov 16 2016 10:21
inspect.png
@Nesp @ushbot
Nesp
@Nesp
Nov 16 2016 10:22
can I see your headers?
tameen
@tameen
Nov 16 2016 10:22
headers from where?
@Nesp
Nesp
@Nesp
Nov 16 2016 10:24
next to cookies
tameen
@tameen
Nov 16 2016 10:24
headers.png
headers
@Nesp
Nesp
@Nesp
Nov 16 2016 10:25
this is for the results, I mean for the request
tameen
@tameen
Nov 16 2016 10:26
could you please explain sir, i am not getting you !
@Nesp
Nesp
@Nesp
Nov 16 2016 10:27
blob
the request should be like this
and like this
blob
and like this
blob
tameen
@tameen
Nov 16 2016 10:29
post_oauth_token.png
sir like this?
@Nesp
Nesp
@Nesp
Nov 16 2016 10:31
you have to select headers, body and authorization in the upper part, which represent the api request
the ones below are those included in the response you get from the server
you cannot change those
tameen
@tameen
Nov 16 2016 10:35
im2.png
im1.png
like this?? :(
sorry for asking so many queries sir, i am new to this. :(
tameen
@tameen
Nov 16 2016 10:42
@Nesp
Nesp
@Nesp
Nov 16 2016 10:42
Man, sorry I don't know how to help you more
blob
tameen
@tameen
Nov 16 2016 10:43
yes i know i am asking some basic queries, but thanks for your time ! :+1:
Nesp
@Nesp
Nov 16 2016 10:43
these three pictures explain exactly the way you are supposed to do it
no worries! I am in the same boat!
just I don't know how to better explain in a chat
tameen
@tameen
Nov 16 2016 10:44
ok sir let me do this again ...and thanks for your precious time.
Nesp
@Nesp
Nov 16 2016 10:45
no prob :)
tameen
@tameen
Nov 16 2016 11:00
@Nesp Just don't kill me :D ... for the last time : steps i performed:

1) Selected Post and inserted url : http://tameenexample.com/api/v3/posts

2) selected headers and created new authorization like this:
Authorization : Basic Tameen

3)selected Body tab and raw option and wrote this line by following your screen-shot:

{"grant_type":"client_credentials","client_id":"ushahidiui","client_secret":"35e7f0bca957836d05ca0492211b0ac707671261","scope":"post media forms api tags saved searches sets users stats layers config messages notifications contact roles permissions csv"}

tr1.png
tr2.png
tr3.png
then clicked send button
Nesp
@Nesp
Nov 16 2016 11:01
the authorization is supposed to be
Basic ABCDEF
not Basic Tameen
tameen
@tameen
Nov 16 2016 11:02
ok let me do this
s3.png
s2.png
s1.png
tameen
@tameen
Nov 16 2016 11:07
@Nesp sorry but here are the results:
Nesp
@Nesp
Nov 16 2016 11:09
the url you should use is the one necessary to get the token
not the one to get the posts
first you get the token, then with that token you can get the posts
so instead of tameenexample.com/api/v3/posts, you should use tameenexample.com/oauth/token
tameen
@tameen
Nov 16 2016 11:17
a1.png
Nesp
@Nesp
Nov 16 2016 11:41
interesting, guess you need @ushbot for that :/
I am looking forward for the answer too!
{"grant_type":"client_credentials","client_id":"ushahidiui","client_secret":"35e7f0bca957836d05ca0492211b0ac707671261","scope":"posts media forms api tags savedsearches sets users stats layers config messages notifications contacts roles permissions csv"}
try to make sure the body of your request is exactly the same as this
Nesp
@Nesp
Nov 16 2016 13:05
@tameen
TheNiqabiCoderMum
@nqcm
Nov 16 2016 13:30
hi i have setup my server with everything, now i am starting on ushahidi installation. i am also following along the video https://www.youtube.com/watch?v=E6ckr9V5Cns&feature=youtu.be along with the installation instructions.
can someone pls help me here, should i download the contents from git clone https://github.com/ushahidi/platform.git at /var/www/html or in a user's home directory?
TheNiqabiCoderMum
@nqcm
Nov 16 2016 14:56
hi there, when i give the command bin/update to install the dependencies, it just saus "skipping git" and brings me back to prompt
and then i checked my database tables (as shown in video) but the table is empty. i have installed composer globally. what am i doing wrong?
TheNiqabiCoderMum
@nqcm
Nov 16 2016 15:03
@d_samuraiNick_twitter @ushbot can anyone help?
tameen
@tameen
Nov 16 2016 15:29
can you share screen shot of these results and your .env file @Theniqabicodermum
works.png
@Nesp it works
thanks a lot :)
Nesp
@Nesp
Nov 16 2016 15:31
@tameen Great! :)
(no problem)
TheNiqabiCoderMum
@nqcm
Nov 16 2016 15:40
2016-11-16_1731.png
@tameen here u go
2016-11-16_1732.png
i am using the sample database credentials and password as i am just trying it on my virtualbox before doing it on aws
but i hv followed the instructions to the tee
tameen
@tameen
Nov 16 2016 15:43
@Nesp thanks a lot for help :) :+1:
do you have installed composer @Theniqabicodermum ?
TheNiqabiCoderMum
@nqcm
Nov 16 2016 15:50
yes i hv
and when i run composer update it runs fine
but when i run bin/update thi is what i am getting
tameen
@tameen
Nov 16 2016 15:50
is your mysql working
service mysql restart
TheNiqabiCoderMum
@nqcm
Nov 16 2016 16:07
i will try but i think it is running
it is already running
TheNiqabiCoderMum
@nqcm
Nov 16 2016 17:50
@tameen i scrolled back and saw that you were also having problems with composer. how did you solve it?
tameen
@tameen
Nov 16 2016 18:48
yes i had
i had two problems
one was mysql installation and one was composer installation
tameen
@tameen
Nov 16 2016 18:55
i reinstalled composer and mysql and issue resolved. i think your composer is not working @Theniqabicodermum
tameen
@tameen
Nov 16 2016 19:02
what happens if you run ./bin/phinx migrate -c application/phinx.php
TheNiqabiCoderMum
@nqcm
Nov 16 2016 19:14
i havent tried that yet
so did you first uninstall the composer?
if yes using what?