By Le Giang Anh on Friday, 25 December 2015
Posted in Technical Issues
Replies 3
Likes 0
Views 802
Votes 0
Hi team,

I have a mobile game which requires user to register the account (username + password or Facebook) to play. I also have website that let user register the account via ES.
Now I'd like to ask whether you have the API for my game to call and verify user, ex:
http://jskill.com?username=";xyz"&pass="abc
then return that user login successfully or not.
And an API to register the user in my mobile game and send them info to my site to create an account there.

Our goal is: Let user register the account in my website and play the game with that account. And if user registers an account in game, we will create an ES account in my site.
Hey there,

We actually created an "authentication" json api which allows users to authenticate their account in exchange for a token. Perhaps you could ride on that?

index.php?option=com_easysocial&view=account&format=json&username=xxx&password=xxx

If the login fails, it returns a json object


{
"code": "403",
"message": "Invalid username or password"
}


Upon successful login, it returns the following json object:


{
"code": 200,
"auth": "some random token",
"id": "the user's id"
}
·
Friday, 25 December 2015 12:42
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Friday, 25 December 2015 14:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, missing the layout in my post above. It should be:

index.php?option=com_easysocial&view=account&format=json&username=xxx&password=xxx&layout=auth
·
Saturday, 26 December 2015 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post