sfomuseum.collection.objects.getObjectsWithColor
Description
Retrieve objects in the SFO Museum Aviation Collection matching a given color. Try this method in the API Explorer.
HTTP Request method
GET
Arguments
- access_token (
string) — A valid OAuth2 access token (required) - format (
string) — The format in which to return the data. Supported formats are json, jsonp. The default format is json. - palette (
string) — A valid color palette label. The complete list of palettes can be retrieve using the "sfomuseum.collection.colors.getPalettes" API method. - color (
string) — A valid hexidecimal color. (required) - page (
int) — The default is 1. - per_page (
int) — The default is 100 and the maximum is 500.
Errors
This API method does not define any custom error codes. For the list of error codes common to all API methods please consult the default error codes documentation.
Notes
- This API method uses plain pagination. Please consult the pagination documentation for details.
Example request — or take this API method for a spin
curl -X GET 'https://api.sfomuseum.org/rest/?method=sfomuseum.collection.objects.getObjectsWithColor&access_token=<TOKEN>&palette=<PALETTE>&color=<COLOR>'