User system is used to manage SG users, including signup, login and kids (family members ) management, etc. Most of the functions use web pages control as part of the process flow. To handle response of these functions, you need to register a listener in your WebView event inside an App.
GET /signup
Description
After signing up, system logs user in automatically.
Examplehttps://gameapi.smartgamesltd.com/signupResponse
GetResult()
. GET /login
Description
Login page.
Examplehttps://gameapi.smartgamesltd.com/loginResponse
GetResult()
. GET /forgot-password
Description
Forget password page.
Examplehttps://gameapi.smartgamesltd.com/forgot-passwordResponse
GetResult()
. GET /change-password
Description
Change password page.
Examplehttps://gameapi.smartgamesltd.com/change-passwordResponse
GetResult()
. GET /parental-lock
Description
You can use parental lock utility view before important actions.
Examplehttps://gameapi.smartgamesltd.com/parental-lockResponse
GET /my-kid
Description
The flow is for creating new kid (family member) of the user.
Examplehttps://gameapi.smartgamesltd.com/my-kidResponse
GetResult()
. GET /select-kid
Description
The flow is used to select a kid to play.
Examplehttps://gameapi.smartgamesltd.com/select-kidResponse
GetResult()
. GET /openid
Description
Obtain Open ID (SG ID) after user login.
Examplehttps://gameapi.smartgamesltd.com/openidResponse
{"OpenID": 100001}
.GET POST /loginbytokenDescription
Login into the system by previously saved token.
Examplehttps://gameapi.smartgamesltd.com/loginbytoken?token=my_tokenParameters
GetResult()
.GET POST /verifysessionDescription
Verify if current session ID is valid.
Examplehttps://gameapi.smartgamesltd.com/verifysession?gamekey=my_gamekey&sessionid=my_sessionid&openid=my_openid&sign=my_signParameters
gameKey | Your developer identification. |
sessionId |
Current session ID. You can obtain it after login. |
openId |
SG member ID. You can obtain it after login. |
sign |
Signature generated from above three parameters. Please refer to signature algorithm. |
GetResult()
. GET /logout
Description
Log user out.
Examplehttps://gameapi.smartgamesltd.com/logoutResponse