/user/addcredits
From EveryTrail API Developer Documentation
Contents |
URL
/api/user/addcredits
Semantics
Call to add credits to a user's account (after purchased)
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username | string | yes | username of user performing the request |
| password | string | yes | password of user performing the request |
| credits | float | yes | credits to add to the user's account |
| purchase_id | string | yes | purchase id from the apple purchase |
| code | string | yes | generated code |
Success Response
<etUserAddcreditsResponse status="success"> <userID>${userID}</userID> </etUserAddcreditsResponse>
${userID}: ID of user
Error Reponse
<etUserAddcreditsResponse status="error"> <userID>${userID}</userID> ${error reponse} </etUserAddcreditsResponse>
