Skip to content

Latest commit

 

History

History
100 lines (81 loc) · 2.29 KB

GET_collections.md

File metadata and controls

100 lines (81 loc) · 2.29 KB

DEPRECATED

Please use the corresponding galleries endpoint


Collections Resources

GET collections

Description

Returns a listing of all User's collections and sets.


Requires authentication

OAuth


Parameters

  • photos_per_collection_limit — The number of photos included in each collection. Can not be over 200, default 200.

Return format

A JSON object with collections — An indexed array of Collection objects in short format.:


Errors

None


Example

Request

GET v1/collections

Return

{
  "collections": [
    {
      "id": 289621,
      "title": "Film set",
      "position": 0,
      "created_at": "2012-05-24T10:13:34-04:00",
      "path": "film_set",
      "photos": [
        {
          "id": 7905188,
          "name": "St Lawrence Market Toronto",
          "rating": 0,
          "created_at": "2012-05-24T11:22:46-04:00",
          "category": 3,
          "image_url": "http://pcdn.500px.net/7905188/9e1fcf034f7492c92d0f98e504d80c0b80e15990/4.jpg",
          "votes_count": 0,
          "position": 1
        },
        {
          "id": 7905189,
          "name": "Distillery district Toronto",
          "rating": 0,
          "created_at": "2012-05-24T11:22:49-04:00",
          "category": 3,
          "image_url": "http://pcdn.500px.net/7905189/cc0ff39d30614fea56f2583ec796460d6a05d69c/4.jpg",
          "votes_count": 0,
          "position": 2
        }
      ]
    },
    {
      "id": 298603,
      "title": "Bikes set",
      "position": 1,
      "created_at": "2012-06-07T13:15:26-04:00",
      "path": "bikes_set",
      "photos": [
        {
          "id": 7651996,
          "name": "bike",
          "rating": 48.7,
          "created_at": "2012-05-16T11:47:12-04:00",
          "category": 26,
          "image_url": "http://pcdn.500px.net/7651996/bfc9a0ae7cfaed28ebc947c2d4cd79e60a04934d/4.jpg",
          "votes_count": 2,
          "position": 1
        }
      ]
    }
  ]
}