3.2 KiB
3.2 KiB
Open Photo API
OpenPhoto, a photo service for the masses
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][PostActionCreate] Create an action.
- [POST /action/:id/delete.json][PostActionDelete] Delete an action.
Photo endpoints
- [POST /photos/:id/delete.json][PostPhotoDelete] Delete a user's photo.
- [POST /photos/:id/update.json][PostPhotoUpdate] 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/:id/update.json][PostTag] Modify meta data for a user's tag.
Group endpoints
- [GET /group/:id/view.json][GetGroup] Get a group.
- [GET /groups/list.json][GetGroups] Get a listing of a user's groups.
- [POST /group/create.json][PostGroupCreate] Create a group.
- [POST /group/delete.json][PostGroupDelete] Delete a group.
- [POST /group/update.json][PostGroupUpdate] Update a group.
Webhook endpoints
- [GET /webhook/:id/view.json][GetWebhook] Get a user's webhook by id.
- [GET /webhooks/list.json][GetWebhooks] An internal private API to list the user's webhooks.
- [POST /webhook/create.json][PostWebhookCreate] Create a new webhook for the user.
- [POST /webhook/:id/delete.json][PostWebHookDelete] Delete an existing webhook.
- [POST /webhook/:id/update.json][PostWebHookUpdate] Update an eixsting webhook.