AlbumExposure API

Comments

* All comment operations apply to an album


Get comments

GET /api/albums/1/comments

Response
[
  {
    "album_id": "1",
    "sent_at": "2011-03-03 17:11:36-0800",
    "from": "C",
    "comments":
    {
      "741798": [
        {
          "text": "first!"
        }
      ],
      "741800": [
        {
          "text": "second!",
          "position": [
            0.3918918918918919,
            0.4201474201474201
          ]
        },
        {
          "text": "third"
        }
      ],
      "741797": [
        {
          "text": "fourth",
          "position": [
            0.18427518427518427,
            0.3316953316953317
          ]
        }
      ]
    }
  }
  ...
]
[
  {
    "album_id": "1",
    "created_at": "2011-03-03 17:11:36 -0800",
    "comments":
    {
      "741798":"first!",
      741800":"second!",
      "741797":"third!"
    }
  }
  ...
]

Get unanswered comments

Lists all comments from the client which the photographer has not answered. Also referred to the 'new' comments.

GET /api/albums/1/comments/unanswered

Response
Status: 200 OK


Get comments from the designer

(If the photographer is working with a Desing Studio Edition designer.)

GET /api/albums/1/comments/designer

Response
Status: 200 OK