.. | ||
Authentication.markdown | ||
Envelope.markdown | ||
GetActivities.markdown | ||
GetGroup.markdown | ||
GetGroups.markdown | ||
GetHelloWorld.markdown | ||
GetPhoto.markdown | ||
GetPhotoNextPrevious.markdown | ||
GetPhotos.markdown | ||
GetTags.markdown | ||
GetWebhook.markdown | ||
GetWebhooks.markdown | ||
PostActionCreate.markdown | ||
PostActionDelete.markdown | ||
PostGroupCreate.markdown | ||
PostGroupDelete.markdown | ||
PostGroupUpdate.markdown | ||
PostPhotoDelete.markdown | ||
PostPhotoUpdate.markdown | ||
PostPhotoUpload.markdown | ||
PostTagCreate.markdown | ||
PostTagUpdate.markdown | ||
PostWebhookDelete.markdown | ||
PostWebhookSubscribe.markdown | ||
Readme.markdown |
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
- GET /hello.json Test endpoint.
Action endpoings (comments, favorites, etc)
- POST /action/:id/:type/create.json Create an action.
- POST /action/:id/delete.json Delete an action.
Photo endpoints
- POST /photos/:id/delete.json Delete a user's photo.
- POST /photos/:id/update.json Update data on a user's photo.
- GET /photo/:id/view.json Get a user's photo.
- GET /photos/list.json Get a list of the user's photos.
- GET /photo/:id/nextprevious.json Get the next and previous photo.
- POST /photo/upload.json Upload a new photo.
Tag endpoints
- GET /tags/list.json Get a user's tags.
- POST /tag/create.json Create a tag for the user.
- POST /tag/:id/update.json Modify meta data for a user's tag.
Group endpoints
- GET /group/:id/view.json Get a group.
- GET /groups/list.json Get a listing of a user's groups.
- POST /group/create.json Create a group.
- POST /group/delete.json Delete a group.
- POST /group/update.json Update a group.
Webhook endpoints
- POST /webhook/subscribe Update an eixsting webhook.
- GET /webhook/:id/view.json Get a user's webhook by id.
- POST /webhook/:id/delete.json Delete an existing webhook.