CloudFire API


Gallery

Show

GET /galleries/#{id}.xml

Returns a single gallery.

 

Response

Status: 200 OK

<gallery>
  <id>1</id>
  <title>My gallery</title>
  <thumbnail>/photo/get?imageID=2340&format=48</thumbnail>
  <photo_sharing type="selected">
    <status>on</status>
    <source type="iPhoto">
      <location>/Users/ash/Pictures/iPhoto Library/AlbumData.xml</location>
    </source>
    <album>
      <id>2321</id>
      <title>Hawaii Vacation</title>
      <thumbnail>/photo/get?imageID=2340&format=48</thumbnail>
    </album>
    <album>
      <id>2296</id>
      <title>Fooding Around</title>
      <thumbnail>/photo/get?imageID=2743&format=48</thumbnail>
    </album>
  </photo_sharing>
  <video_sharing type="selected">
    <status>on</status>
    <source type="iTunes">
      <location>/Users/ash/Music/iTunes/iTunes Library.xml</location>
    </source>
    <video>
      <id>2321</id>
      <title>Hawaii Vacation</title>
      <thumbnail>/photo/get?imageID=2340&format=48</thumbnail>
    </video>
    <video>
      <id>2296</id>
      <title>Fooding Around</title>
      <thumbnail>/photo/get?imageID=2743&format=48</thumbnail>
    </video>
  </video_sharing>
  <facebook_sharing>
      <wall_updates>on</wall_updates>
      <publish_photos>off</publish_photos>
      <publish_videos>off</publish_videos>
  </facebook_sharing>
</gallery>

 

Create

POST /galleries.xml

Updates the settings for photo sharing.

 

Request

<gallery>
  <title>My gallery</title>
  <photo_sharing type="selected">
    <status>on</status>
    <source type="iPhoto">
      <location>/Users/ash/Pictures/iPhoto Library/AlbumData.xml</location>
    </source>
    <album>
      <id>2321</id>
    </album>
    <album>
      <id>2296</id>
    </album>
  </photo_sharing>
  <video_sharing type="selected">
    <status>on</status>
    <source type="folder">
      <location>/Users/ash/Movies</location>
    </source>
    <video>
      <id>2321</id>
    </video>
    <video>
      <id>2296</id>
    </video>
  </video_sharing>
</gallery>

 

 

Response

Status: 200 OK

 

Set

PUT /galleries/#{id}.xml

Updates the settings for photo sharing.

 

Request

<gallery>
  <id>1</id>
  <title>My gallery</title>
  <photo_sharing type="selected">
    <source type="iPhoto">
      <location>/Users/ash/Pictures/iPhoto Library/AlbumData.xml</location>
    </source>
    <album>
      <id>2321</id>
    </album>
  </photo_sharing>
  <video_sharing type="selected">
    <status>on</status>
    <source type="folder">
      <location>/Users/ash/Movies</location>
    </source>
    <video>
      <id>2321</id>
    </video>
    <video>
      <id>2296</id>
    </video>
  </video_sharing>
</gallery>

 

 

 

Response

Status: 200 OK

 

Remove

DELETE /galleries/#{id}.xml

Deletes a gallery.

 

 

 

 

Response

Status: 200 OK