unsplash v1.1.0 Unsplash.Collections View Source
All /collections/* api endpoints
Link to this section Summary
Functions
POST /collections/:collection_id/add
GET /collections
POST /collections
GET /collections/curated
GET /collections/curated/:id/photos
DELETE /collections/:id
GET /collections/featured
GET /collections/:id
GET /collections/curated/:id
GET /collections/:id/related
GET /collections/:id/photos
GET /collections/:id/related
DELETE /collections/:collection_id/add
PUT /collections/:id
Link to this section Functions
add_photo(id, photo_id) View Source
POST /collections/:collection_id/add
Args:
collection_id- The collection’s ID. Required.photo_id- The photo’s ID. Required.
Requires write_collections scope
all(opts \\ []) View Source
GET /collections
create(opts \\ []) View Source
POST /collections
Args:
opts- Keyword list of options
Options:
title- The title of the collection. (Required.)description- The collection’s description. (Optional.)private- Whether to make this collection private. (Optional; default false).
Requires write_collections scope
curated(opts \\ []) View Source
GET /collections/curated
curated_photos(id) View Source
GET /collections/curated/:id/photos
Args:
id- The collections ID
delete(id) View Source
DELETE /collections/:id
Requires write_collections scope
featured(opts \\ []) View Source
GET /collections/featured
get(id) View Source
GET /collections/:id
Args:
id- The collections ID
get_curated(id) View Source
GET /collections/curated/:id
Args:
id- The collections ID
photos(id) View Source
GET /collections/:id/photos
Args:
id- The collections ID
remove_photo(id, photo_id) View Source
DELETE /collections/:collection_id/add
Args:
collection_id- The collection’s ID. Required.photo_id- The photo’s ID. Required.
Requires write_collections scope
update(id, opts \\ []) View Source
PUT /collections/:id
Args:
opts- Keyword list of options
Options:
title- The title of the collection. (Required.)description- The collection’s description. (Optional.)private- Whether to make this collection private. (Optional; default false).
Requires write_collections scope