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][http://theopenphotoproject.org/documentation/api/Envelope].
{
message: "A string describing the response",
code: 200,
result: {
foo: "bar"
}
}
API Endpoints
Test / diagnostics endpoints
- [GET /hello.json][http://theopenphotoproject.org/documentation/api/GetHelloWorld] Test endpoint.
Action endpoings (comments, favorites, etc)
- [POST /action/:id/:type/create.json][http://theopenphotoproject.org/documentation/api/PostActionCreate] Create an action.
- [POST /action/:id/delete.json][http://theopenphotoproject.org/documentation/api/PostActionDelete] Delete an action.
Photo endpoints
- [POST /photos/:id/delete.json][http://theopenphotoproject.org/documentation/api/PostPhotoDelete] Delete a user's photo.
- [POST /photos/:id/update.json][http://theopenphotoproject.org/documentation/api/PostPhotoUpdate] Update data on a user's photo.
- [GET /photo/:id/view.json][http://theopenphotoproject.org/documentation/api/GetPhoto] Get a user's photo.
- [GET /photos/list.json][http://theopenphotoproject.org/documentation/api/GetPhotos] Get a list of the user's photos.
- [GET /photo/:id/nextprevious.json][http://theopenphotoproject.org/documentation/api/GetPhotoNextPrevious] Get the next and previous photo.
- [POST /photo/upload.json][http://theopenphotoproject.org/documentation/api/PostPhotoUpload] Upload a new photo.
Tag endpoints
- [GET /tags/list.json][http://theopenphotoproject.org/documentation/api/GetTags] Get a user's tags.
- [POST /tag/:id/create.json][http://theopenphotoproject.org/documentation/api/PostTagCreate] Create a tag for the user.
- [POST /tag/:id/update.json][http://theopenphotoproject.org/documentation/api/PostTagUpdate] Modify meta data for a user's tag.
Group endpoints
- [GET /group/:id/view.json][http://theopenphotoproject.org/documentation/api/GetGroup] Get a group.
- [GET /groups/list.json][http://theopenphotoproject.org/documentation/api/GetGroups] Get a listing of a user's groups.
- [POST /group/create.json][http://theopenphotoproject.org/documentation/api/PostGroupCreate] Create a group.
- [POST /group/delete.json][http://theopenphotoproject.org/documentation/api/PostGroupDelete] Delete a group.
- [POST /group/update.json][http://theopenphotoproject.org/documentation/api/PostGroupUpdate] Update a group.
Webhook endpoints
- [POST /webhook/subscribe][http://theopenphotoproject.org/documentation/api/PostWebHookSubscribe] Update an eixsting webhook.
- [GET /webhook/:id/view.json][http://theopenphotoproject.org/documentation/api/GetWebhook] Get a user's webhook by id.
- [POST /webhook/:id/delete.json][http://theopenphotoproject.org/documentation/api/PostWebHookDelete] Delete an existing webhook.