/user/addcredits

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/user/addcredits

Semantics

Call to add credits to a user's account (after purchased)

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername of user performing the request
passwordstringyespassword of user performing the request
creditsfloatyescredits to add to the user's account
purchase_idstringyespurchase id from the apple purchase
codestringyesgenerated 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>
Personal tools