Trophies - Add Achieved
Sets a trophy as achieved for a particular user.
URL Endpoint
/trophies/add-achieved/
Parameters
| Name | 
Required? | 
Type | 
Description | 
game_id | 
Yes | 
string | 
The ID of your game. | 
username | 
Yes | 
string | 
The user's username. | 
user_token | 
Yes | 
string | 
The user's token. | 
trophy_id | 
Yes | 
integer | 
The ID of the trophy to add for the user. | 
Returns
| Name | 
Type | 
Description | 
success | 
boolean | 
Whether the request succeeded or failed.   Example: true | 
message | 
string | 
If the request was not successful, this contains the error message.   Example: Unknown fatal error occurred. | 
Syntax
/trophies/add-achieved/?game_id=xxxxx&username=myusername&user_token=mytoken&trophy_id=1047
Errors
| Affected parameter | 
Description | 
Error message | 
trophy_id | 
The passed in trophy_id does not belong to the passed in game_id or does not exist | 
Incorrect trophy ID. | 
trophy_id | 
The user has already achieved this trophy | 
The user already has this trophy. | 
Version history
| Version | 
Description | 
| 1.0 | 
First implementation |