REST API v2.8

Resources

Collection of resources (images and other files).

Get Resources

Endpoint

GET sites/{siteid}/resources

Parameters

start

The index of the item to start fromDefault: 0

num

The number of items returnedDefault: 10

fields

Comma separated list of fields to return. Use this to query only the fields you are using. Default is all fields in resource.

HTTP Response Status

200

OK. Returns data (see below).

400

Bad Request. Invalid syntax, missing required argument or invalid request.

401

Unauthorized. Authorization failed.

404

Resource not found. The url is invalid.

429

Too Many Requests.

500

Internal Server Error.

Returns

Returns an envelope with items of type resource.

Example

Request

GET https://api.mysitoo.com/v2/accounts/1500/sites/1/resources.json?num=2

Response

{ "totalcount": 41, "items": [ { "resourceid": "banner_main.jpg", "mimetype": "image\/jpeg", "width": 947, "height": 430, "filesize": 21117, "datecreated": 1352898291 }, { "resourceid": "banner_main_demo.jpg", "mimetype": "image\/jpeg", "width": 1134, "height": 515, "filesize": 33920, "datecreated": 1352898291 } ] }