GET api/Score/Game/{productId}/Customer/{userID}?dateEnd={dateEnd}&periodInMinutes={periodInMinutes}
Gets maximum score of a user within an optional time range
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
productId |
Game's Product-ID |
integer |
Required |
userID |
User ID |
string |
Required |
dateEnd |
[Optional] End of time range in Unix time (number of seconds elapsed since 00:00:00 UTC, 1970-01-01) If not specified, the default end of time range is the current time ( NOW ) |
integer |
Default value is 0 |
periodInMinutes |
[Optional] The length of time range period in minutes If not specified, the whole range is defined ( range up to now ), and the dateEnd is ignored. |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
Maximum game score
ScoreResultName | Description | Type | Additional information |
---|---|---|---|
score | integer |
None. |
|
err | boolean |
None. |
|
message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "score": 1, "err": true, "message": "sample string 3" }
application/xml, text/xml
Sample:
<ScoreResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yummy.Core.Score"> <err>true</err> <message>sample string 3</message> <score>1</score> </ScoreResult>