photo-documentation/docs/api
2013-05-14 19:43:55 +02:00
..
Authentication.markdown updated to include getting oauth and consumer keys 2013-05-14 18:16:23 +01:00
Envelope.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
GetActivities.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
GetGroup.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
GetGroups.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
GetHelloWorld.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
GetPhoto.markdown Use Python3 print syntax 2013-05-14 19:43:55 +02:00
GetPhotoNextPrevious.markdown Added Python example to GetPhotoNextPrevious 2013-05-04 19:43:36 +02:00
GetPhotos.markdown Add Python example to GetPhotos 2013-05-04 19:55:27 +02:00
GetTags.markdown Added Python example 2013-05-14 19:13:43 +02:00
GetWebhook.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
GetWebhooks.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostActionCreate.markdown Adding additions from @sushimustwrite 2013-01-29 11:10:50 -05:00
PostActionDelete.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostGroupCreate.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostGroupDelete.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostGroupUpdate.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostPhotoDelete.markdown Added Python example to PostPhotoDelete 2013-05-14 19:22:24 +02:00
PostPhotoUpdate.markdown Add Python example to PostPhotoUpdate 2013-05-14 19:36:03 +02:00
PostPhotoUpload.markdown Added Python example to PostPhotoUpload 2013-05-14 19:40:47 +02:00
PostTagCreate.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostTagUpdate.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostWebhookDelete.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
PostWebhookSubscribe.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00
Readme.markdown Initial checkin of docs 2013-01-28 22:49:14 -05:00

Open Photo API


How do I authenticate?

The Open Photo API uses OAuth1.0a for authentication. See the complete guide on authentication for details.

What's the response format?

Every API endpoint returns a JSON response in a standard envelope.

{
  message: "A string describing the response",
  code: 200,
  result: {
    foo: "bar"
  }
}

API Endpoints

Test / diagnostics endpoints

  1. GET /hello.json Test endpoint.

Action endpoings (comments, favorites, etc)

  1. POST /action/:id/:type/create.json Create an action.
  2. POST /action/:id/delete.json Delete an action.

Photo endpoints

  1. POST /photos/:id/delete.json Delete a user's photo.
  2. POST /photos/:id/update.json Update data on a user's photo.
  3. GET /photo/:id/view.json Get a user's photo.
  4. GET /photos/list.json Get a list of the user's photos.
  5. GET /photo/:id/nextprevious.json Get the next and previous photo.
  6. POST /photo/upload.json Upload a new photo.

Tag endpoints

  1. GET /tags/list.json Get a user's tags.
  2. POST /tag/create.json Create a tag for the user.
  3. POST /tag/:id/update.json Modify meta data for a user's tag.

Group endpoints

  1. GET /group/:id/view.json Get a group.
  2. GET /groups/list.json Get a listing of a user's groups.
  3. POST /group/create.json Create a group.
  4. POST /group/delete.json Delete a group.
  5. POST /group/update.json Update a group.

Webhook endpoints

  1. POST /webhook/subscribe Update an eixsting webhook.
  2. GET /webhook/:id/view.json Get a user's webhook by id.
  3. POST /webhook/:id/delete.json Delete an existing webhook.