Querying Promo Types
GET /api/promotypes Returns a list of promo types of the bargain listings in our system. You can retrieve multiple promo types at once by sending this GET request to the root promo type URL. Without any URL parameters, this simply lists all promo types identified by our system. Example Request
curl -X GET \ -H "X-INAB-Application-Id: ${APPLICATION_ID}" \ -H "X-INAB-REST-API-Key: ${REST_API_KEY}" \ http://www.ineedabargain.com/api/promotypes Example Response { "authorized_in": 0.166, "processed_in": 0.014, "results": [ { "id": 19, "name": "Rebate", "type": "promo type", "countAll": 6906, "count30": 174, "count7": 51 }, { "id": 30, "name": "In-Store", "type": "promo type", "countAll": 24342, "count30": 834, "count7": 242 }, { "id": 65, "name": "Refurb", "type": "promo type", "countAll": 10694, "count30": 392, "count7": 107 }, { "id": 67, "name": "Freebie", "type": "promo type", "countAll": 54776, "count30": 1659, "count7": 437 }, { "id": 119, "name": "Exclusive", "type": "promo type", "countAll": 2805, "count30": 104, "count7": 32 }, { "id": 150, "name": "Survey", "type": "promo type", "countAll": 1212, "count30": 65, "count7": 16 }, { "id": 169, "name": "Today Only", "type": "promo type", "countAll": 22083, "count30": 879, "count7": 239 }, { "id": 170, "name": "Friends & Family", "type": "promo type", "countAll": 2100, "count30": 52, "count7": 9 }, { "id": 174, "name": "Fun Contest", "type": "promo type", "countAll": 791, "count30": 46, "count7": 17 } ] }
|