Updated on 01/07/2016 by MH
PROFILE API
Server-Side
Get TOKEN (Server Side)
https://api.goodgames.net/platform/DataCenter.svc/token?app_code={app_code}&app_id={app_id}&app_secret={app_secret}
----------
Get PROFILE (Full Version) (Server Side)
https://api.goodgames.net/platform/DataCenter.svc/getuserprofile_v2?app_id={app_id}&token={token}
----------
Get PROFILE (Lite Version) (Server Side)
http://api.goodgames.net/platform/DataCenter.svc/getuserprofile_v2_lite?app_id={app_id}&token={token}
----------
Validate TOKEN (Server Side)
https://api.goodgames.net/platform/DataCenter.svc/Validate_TOKEN?app_id={app_id}&token={token}
----------
Decode Facebook Access Token (Server Side)
httsp://api.goodgames.net/platform/DataCenter.svc/deGenerateFBATCode?FBATCode={FBATCode}&app_id={app_id}&app_secret={app_secret}
----------
Get Public PROFILE (Server Side)
https://api.goodgames.net/WCF_Platform_V2_PublicProfile/{UID}
==========
Client-Side
Get TOKEN (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/get_token/client?code={code}&appid={appid}&deviceid={deviceid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({code}|{appid}|{deviceid}|{unixtime}|appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": {
"app_id": {appid},
"app_secret": "{app_secret}",
"app_code": "{app_code}",
"token": "{token}"
},
"validate": {
"unixtime": "1478755071",
"checksum": "3b0c15790251f40f9f3aa9f4ce962f77"
}
}
*** checksum = MD5(value|validate.unixtime|appsecret of {appid}))
*** value = {appid}|{app_secret}|{app_code}|{token}
----------
Get PROFILE (Full Version) (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/get_profile/full/client?token={token}&appid={appid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({token}|{appid}|{unixtime}|appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": [
{
"UID": "{UID}",
"RefID": "{RefID}",
"AppID": "36",
"RefName": "{RefName}"
},{
"UID": "{UID}",
"RefID": "{RefID}",
"AppID": "{AppID}",
"RefName": "{RefName}",
"CustomProfile": {
"ProfileKeyID" : "{ProfileKeyID}",
"ProfileKeyName" : "{ProfileKeyName}",
"ProfileKeyValue" : "{ProfileKeyValue}"
}
}],
"validate": {
"unixtime": "1478754726",
"checksum": "1372d0c683b839c3c40f344aba840fa6"
}
}
*** checksum = MD5(value|validate.unixtime|appsecret of {appid})
*** value = data[0]|data[1]|data[2]|…|data[n]
*** data[] = {UID}|{RefID}|{AppID}|{RefName}|{CustomProfile[0]}|{CustomProfile[1]}|{CustomProfile[2]}|…|{CustomProfile[n]}
*** CustomProfile[] = {ProfileKeyID}|{ProfileKeyName}|{ProfileKeyValue}
----------
Get PROFILE (Lite Version) (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/get_profile/lite/client?token={token}&appid={appid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({token}|{appid}|{unixtime}|{appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": [
{
"UID": "{UID}",
"RefID": "{RefID}",
"AppID": "{AppID}",
"RefName": "{RefName}"
}],
"validate": {
"unixtime": "1478754726",
"checksum": "1372d0c683b839c3c40f344aba840fa6"
}
}
*** checksum = MD5(value|validate.unixtime|appsecret of {appid})
*** value = data[0]
*** data[] = {UID}|{RefID}|{AppID}|{RefName}
----------
Validate TOKEN (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/validate_token/client?token={token}&appid={appid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({token}|{appid}|{unixtime}|appsecret of {appid})
response (JSON)
{
"response": {
"result": "true",
"remark": "success"
},
"data": {
"isvalid": "{isvalid}",
"ExpireDate": "{ExpireDate}",
"ExpireMinute": "{ExpireMinute}",
"RemainMinute": "{RemainMinute}"
},
"validate": {
"unixtime": "1478661246",
"checksum": "e1fe5b5a526b0c4c88f18c949e52bba9"
}
}
*** checksum = MD5(value|validate.unixtime|appsecret of {appid})
*** value = {isvalid}|{ExpireDate}|{ExpireMinute}|{RemainMinute}
----------
Decode Facebook Access Token (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/decode_facebook_token/client?fbatcode={fbatcode}&appid={appid}&deviceid={deviceid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({fbactcode}|{appid}|{deviceid}|{unixtime}|{appsecret})
response (JSON)
{
"response": {
"result": "true",
"remark": "success"
},
"data": {
"accesstoken": "{accesstoken}"
},
"validate": {
"unixtime": "1478661246",
"checksum": "e1fe5b5a526b0c4c88f18c949e52bba9"
}
}
*** checksum = MD5(value|validate.unixtime|appsecret of {appid})
*** value = {accesstoken}
----------
Get Existing Facebook Acess Token (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/get_existing_facebook_token/client?uid={uid}&appid={appid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({uid}|{appid}|{unixtime}|appsecret of {appid})
response (JSON)
{
"response": {
"result": "true",
"remark": "success"
},
"data": [
{
"facebook_id": "{facebook_id}",
"access_token": "{access_token}",
"expire": "{expire}",
}],
"validate": {
"unixtime": "1478661246",
"checksum": "e1fe5b5a526b0c4c88f18c949e52bba9"
}
}
*** MD5(value|validate.unixtime|appsecret of {appid})
*** value = data[0]|data[1]|data[2]|…|data[n]
*** data[] = {facebook_id}|{access_token}|{expire}
----------
Force Expire Platform TOKEN (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/force_expire_platform_token/client?token={token}&appid={appid}&userip={userip}&expireby={expireby}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({token}|{appid}|{userip}|{expireby}|{unixtime}|appsecret of {appid})
response (JSON)
{
"response": {
"result": "true",
"remark": "success"
},
"data": {
"expire_result": "true"
},
"validate": {
"unixtime": "1478661246",
"checksum": "e1fe5b5a526b0c4c88f18c949e52bba9"
}
}
*** checksum = MD5(value|validate.unixtime|appsecret of {appid})
*** value = {expire_result}
----------
ReNew Platform TOKEN (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/renew_platform_token/client?token={token}&appid={appid}&userip={userip}&renewy={renewby}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({token}|{appid}|{userip}|{renewby}|{unixtime}|appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": {
"app_id": 90,
"app_secret": "",
"app_code": "",
"token": "QgBpADMAOQB6AFIAagA5ADEATAB4ADEAbABQAG0ASQBEADEAdgB6AHIAVgBOACsAagBiAGcAcABpADQATQA5AGQAYQAyAG0AUQAwAC8AWgBrAGkAcgAwAEIAZQAvADQATABOAFkANgBCAGoAcwBtAG4ATQBDAEUAbABzAFoAaQBJAHYASABDAFAAQwBZAFkANgBsAEUAMgBUADEAdgBZADEAdAA3AG8ASgA4ADIATwB1AEMAUQArAGcAYwBtAC8ASABzAHAAawBoAEcASgBIAFQAZQAwAD0A"
},
"validate": {
"unixtime": "1478660703",
"checksum": "129f53f2d6d1dcaabe92918e093d7ede"
}
}
*** checksum=MD5(value|validate.unixtime|appsecret)
*** value = {appid}|{app_secret}|{app_code}|{token}
----------
Get User Profile (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/get_userprofile/client?token={token}&appid={appid}&profileid={profileid}&userip={userip}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({token}|{appid}|profileid}|{userip}|{unixtime}|appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": [
{
"UID": "376969",
"ProfileKeyID": "1",
"ProfileName": "FirstName",
"ProfileValue": "Neo",
"CreateDate": "1900-01-01 00:00:00.000",
"CreateIP": "NULL",
"UpdateDate": "1900-01-01 00:00:00.000",
"UpdateIP": "NULL"
},{
"UID": "376969",
"ProfileKeyID": "2",
"ProfileName": "LastName",
"ProfileValue": "Mnemonic",
"CreateDate": "1900-01-01 00:00:00.000",
"CreateIP": "NULL",
"UpdateDate": "1900-01-01 00:00:00.000",
"UpdateIP": "NULL"
}],
"validate": {
"unixtime": "1478658884",
"checksum": "50496c8ccac01217b3be25006078770f"
}
}
*** checksum=MD5(value|validate.unixtime|appsecret)
*** value = data[0]|data[1]|data[2]|…|data[n]
*** data[] = {UID}|{ProfileKeyID}|{ProfileName}|{ProfileValue}|{CreateDate}|{CreateIP}|{UpdateDate}|{UpdateIP}
----------
Get Profile List (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/get_profile_list/client?appid={appid}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({appid}|{unixtime}|appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": [
{
"ProfileKeyID": 1,
"ProfileName": "FirstName"
},{
"ProfileKeyID": 2,
"ProfileName": "LastName"
},{
"ProfileKeyID": 3,
"ProfileName": "Birthday"
},{
"ProfileKeyID": 4,
"ProfileName": "Gender"
},{
"ProfileKeyID": 5,
"ProfileName": "TelNumber"
},{
"ProfileKeyID": 6,
"ProfileName": "CitizenID"
},{
"ProfileKeyID": 7,
"ProfileName": "CodeName"
},{
"ProfileKeyID": 8,
"ProfileName": "Nationality"
},{
"ProfileKeyID": 9,
"ProfileName": "Address"
},{
"ProfileKeyID": 10,
"ProfileName": "City"
},{
"ProfileKeyID": 11,
"ProfileName": "ZipCode"
},{
"ProfileKeyID": 12,
"ProfileName": "Email"
}],
"validate": {
"unixtime": "1478659484",
"checksum": "4127b0fac7acec90c0e8da0adfbb89ae"
}
}
*** checksum=MD5(value|validate.unixtime|appsecret)
*** value = data[0]|data[1]|data[2]|…|data[n]
*** data[] = {ProfileKeyID}|{ProfileName}
example = MD5(1|FirstName|2|LastName|3|Birthday|4|Gender|5|TelNumber|6||CitizenID|7|CodeName|8|Nationality|9|Address|10|City|11||ZipCode|12|Email)
----------
Exchange Platform TOKEN (Client Side)
request (URL)
https://api.goodgames.net/platform/v2/exchange_platform_token_for_code/client?appid={appid}&token={token}&newappid={newappid}&userip={userip}&unixtime={unixtime}&hashvalue={hashvalue}
*** hashvalue = MD5({appid}|{token}|{newappid}|{userip}|{unixtime}|appsecret of {appid})
response (JSON)
{
"result": "true",
"remark": "success",
"data": {
"old_token": "{token}",
"old_appid": "{appid}",
"new_code": "{newCODE}",
"new_appid": "{newappid}"
},
"validate": {
"unixtime": "1478493759",
"checksum": "4beddf80ed39f6d997fab9a638bbce6d"
}
}
*** checksum=MD5(value|validate.unixtime|appsecret of {appid})
*** value = {old_token}|{old_appid}|{new_code}|{new_appid}