2.4. Login with HTTP
Example of login with HTTP
https://www.idcgames.com/unilogin/getAccessData.php?
Parameters of the request
- &idctk is obtained from idctk parameter
- &idcgameid unique game identifierobetained from idcgameid parameter
- &idcuuid obtained from idcuuid parameter
Parameters of the answer
PARAMETER NAME | DESCRIPTION |
---|---|
result | Values: 0 (OK) or 1 (USER INVALID) |
userid | User identifier within the IDC Games platform |
usercrc | for security reasons we add a CRC that always will match the userid, it can be used to avoid man-in-the-middle securiy problems. |
language | 2 letters that indicate the language of the user (ISO 639-1) |
country | 2 letters that indicates the country code (ISO 3166-1) |
currency | 3 letters indicating the curreny that the user has used to buy in the platfotm (ISO-4217) |
Example of the request
https://www.idcgames.com/unilogin/getAccessData.php? idctk=6ae4e9d12e76438eb41955c09c9369ef&idcgameid=999&idcuuid=6022DAAE-03F7-11E9-BB88-E86A6485A3C7
Example of the answer
{"status":0,"description":"LOGIN OK","user":{"userid":19833”, "usercrc":"c0c16dbf26478896b9a76b01670247fa", "language":"es", "country":"ES", "currency":"}}
Request extra info about users in HTTP
https://www.idcgames.com/unilogin/getUserProfileInfo.php?
Parameters of the request:
- &userid
- &apisecret with the following values: 0 (OK) or 1 (USER INVALID)
- nick: user's nick
- email: user's email address, of provided
- avatar: URL to the user's avatar's image
- status: conexion status of the user: online, offline, etc.
- custom: custom user's status message