photo-front/documentation/api/README.markdown
2011-07-19 13:35:59 -07:00

1,004 B

Open Photo API

OpenPhoto, a photo service for the masses


How do I authenticate?

The Open Photo API uses OAuth2 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

  1. GET /photos.json Get a list of the user's photos.
  2. GET /photo/:id.json Get a user's photo.
  3. POST /photo/upload.json Upload a new photo.