/guide/deletedownload

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/guide/deletedownload

Semantics

Remove a guide download from a user's account. If the guide was "pending", it will be removed completely. Otherwise the status will either change to "deleted" or "deleted from bundle". In both cases, if a subsequent call is made to download the guide, it will be restored, and the user will not be charged twice.

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername of user performing the request
passwordstringyespassword of user performing the request
urlstringyesurl of the trip ("half-dome-hike")


Success Response

<etGuideDeletedownloadReponse status="success">
  <guideUrl>${guideUrl}</guideUrl>
  <status>${status}</status>
   ${guideXML}
</etGuideDeletedownloadReponse>


${status} 0: pending 1: paid 2: deleted 3: bundled 4: deleted from bundle

Error Reponse

<etGuideDeletedownloadReponse status="error">
  <guideUrl>${guideUrl}</guideUrl>
  ${error reponse}
</etGuideDeletedownloadReponse>
Personal tools