Skip to content

Commit 29a4943

Browse files
authored
Update README.md
1 parent 6e61d35 commit 29a4943

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ after theses lines, you call the functions.
2929

3030
This function return a json file containing its "gc_id" that must be save in your database to authenticate a user that is logging in.
3131

32-
- login a User, this function return the token JWT that you must save in localStorage to authenticate Graphcomment.
32+
- login a User, this function return the token JWT as JSON that you must save in localStorage to authenticate Graphcomment.
3333

3434
`$client->loginUser('email', 'gc_id');`
3535

36+
to save in our localStorage call this url => http://graphcomment.com/fr/auth.html?gc_token=[TOKEN-without-JWT-only-token]
37+
38+
Example :
39+
40+
http://graphcomment.com/fr/auth.html?gc_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1OGY5ZjQ5OTk3NzkwOTBkODYyMDgwOTIiLCJ1c2VybmFtZSI6ImRhdmlkIGRqaWFuIiwiZW1haWwiOiJzaXJiYWxkdXJAZ21haWwuY29tIiwiZmFjZWJvb2tfaWQiOiIxMDE1NDE3Mjk2NzQ1MTQ5MSIsImdvb2dsZV9pZCI6IjExNjEwMTAxNzgxODA3MjI5MDk0OCIsInJvbGUiOJ1c2VyIiwicGljdHVyZSI6Ii9pbWFnZXMvYXZhdGFyXzMucG5nIiwibGFuZ3VhZ2UiOiJmciIsImZyb21fd2Vic2l0ZSI6IjU4MWQyMTlmOGRmY2EwMzlhY2MMGZiZiIsInZhbGlkYXRpb24iOnt9LCJpYXQiOjE0OTk2ODYxMjIsImV4cCI6MTUwMjI3ODEyMn0.YyiANmL4-wzu1XGak1SbBmywZOWLHwjYsXtBW-Ikqx4
41+
3642
- Get the list of your users
3743

3844
`$client->getUsersQuery("10", "1", "kevin");`
@@ -41,4 +47,4 @@ get the list of users with name "kevin" that subscribe to GC.
4147

4248
get the threads and comments by url of a page (without http or https) then return a json with all comments and interactions.
4349

44-
`$client->getThread("//graphcomment.com/demo");`
50+
`$client->getThread("//graphcomment.com/demo");`

0 commit comments

Comments
 (0)