Welcome‎ > ‎Version 1‎ > ‎

Offer Api

Method: /offers/

This function handles offer search. It performs the requested search, returning the results as JSON or XML.

Arguments

  • apiKey string (required)
  • segmentId int (optional) Call the /segments method to get a list of active segments and their segmentIds
  • date string (optional, YYYYMMDD or YYYYMMDD-YYYYMMDD) Pass a specific date 20100425 or date range '20100425-20100427'.

Example requests

//get offers for a particular segment
curl -d '...' http://thesite.com/api/v1/offers/?segmentId=1&
apiKey=594b797c7af64b518928dae141be2f56

//get offers for a particular date
curl -d '...' http://thesite.com/api/v1/offers/?
date=20100601-2011063&apiKey=594b797c7af64b518928dae141be2f56

Example xml response





Comments