Info Value
Updated on18 September 2018
Response formatJSON
HTTP MethodsGET
Response objectData
API Version1.0

CustomGameUserData/Get

Retrieve data for a specific game for a specific user

Parameters

Parameter Type Description
user_id integer The ID of the user
game_id integer The ID of the game
data string (optional) A JSON string to select which parts of the stored JSON object to return if the set value is a JSON object
hash string The security hash

Response

The response depends on what has been requested. If the saved data is a plain string a string will be returned. If the saved data is a JSON object and the data parameter specifies to return an attribute of that object and not the whole object then only this part of the object it will be returned.
Element Type Description

Example

Request

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=CustomGameUserData/Get&user_id=##&game_id=##&hash=##

Sample response

{
"data":{
	"user_id" : 123,
	"facebook_id" : 1234,
	"google_id" : 5678,
	"username" : "test@test.com",
	"nickname" : "Test",
	"dob" : "1970-01-01",
	"sex" : "m"
},
"code":0
}
If the data parameter was set to ["username"]

Request

https://api.miniclip.com/json/?app_id=##&secret=##&signature=##&method=CustomGameUserData/Get&user_id=##&game_id=##&hash=##&data=["username"]

Sample response

{
	"username" : "test@test.com",
}