File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,16 @@ after theses lines, you call the functions.
2929
3030This 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
4248get 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"); `
You can’t perform that action at this time.
0 commit comments