Aukro WebAPI

doAddToWatchList

This method allows a logged-in user to add indicated offers to the watch-list.

  1. sessionId | String | required
    User's session identifier received using the doLogin(Enc) method.
  2. itemIds | Long[]
    Array of offer identifiers to be added to watch-list (max. 25).
  1. watchListInfo | WatchListInfoStruct | required
    Structure containing information on operation results.
    1. itemsAdded | Long[]
      Array of offer identifiers that have been successfully added to watch-list.
    2. itemsNotAdded | ItemsNotAddedStruct[]
      Array of structures containing offer identifiers that have not been added to watch-list (with reason of failure).
      1. itemId | Long
        Offer identifier.
      2. itemErrorCode | String | required
        Error code indicating a reason of the failure.
      3. itemErrorDescription | String | required
        Error code description.
  • ERR_BLOCKED_USER_CANT_INVOKE_METHOD
    User whose account has been blocked cannot use this method.
  • ERR_INCORRECT_ITEM_ID
    Invalid offer identifier or the offer has been moved to archive.
  • ERR_ITEM_ALREADY_WATCHED
    Offer is already on the watch-list.
  • ERR_ITEM_IDS_ARRAY_EMPTY_OR_OVERFLOWED
    No offer identifier has been provided or the number of identifiers exceeds the acceptable limit (max. 25).
  • ERR_ITEM_FINISHED
    Offer has been ended.
  • ERR_ITEM_REMOVED_BY_ADMIN
    Item page has been removed by the administrator.
  • ERR_NO_SESSION / ERR_SESSION_EXPIRED
    Invalid session identifier or the session has expired.
  • ERR_TOO_MANY_ITEMS_WATCHED
    Limit of watched offers has been exceeded (max. 200).
  • ERR_WEBAPI_KEY_INACTIVE
    The session-generating WebAPI key has been deactivated (the owner did not accept the User Agreement).
  • ERR_WEBAPI_NOT_AVAIL
    Problems with Allegro WebAPI service.