API - Rentals - Retrieve List

Request:

GET /api2/rentals/?apiKey=XXXXXX {

pagename: Demo Rentals LLC <--- This is the group name from your page templates

categoryid: 1234 <--- ID of the category you'd like to retrieve all rentals from

_body: true/false <--- if true, returns more details

offset: 0 <--- start at record #

limit: 2 <--- count of records to return

}

Response:

{

"offset": "",

"limit": "2",

"first": "http://www.inflatableoffice.com/api2/rentals?offset=0&limit=2",

"next": "http://www.inflatableoffice.com/api2/rentals?offset=2&limit=2",

"previous": "http://www.inflatableoffice.com/api2/rentals?offset=0&limit=2",

"items": [

{

"id": "1",

"href": "http://www.inflatableoffice.com/api2/rentals/1",

"ridename": "11 x 11 Castle Jumper23",

"imageloc": "https://www.inflatableoffice.com/images/manufacturers/bouncingangels/58.jpg",

"imagelocbig": "",

"description": ""

},

{

"id": "1169",

"href": "http://www.inflatableoffice.com/api2/rentals/1169",

"ridename": "111111111111111",

"imageloc": "",

"imagelocbig": "",

"description": ""

}

]

}

Is article helpful?