FAQ/API Documentation/Photo Resources

Get Adjacent

Lockerz Admin
posted this on December 05, 2010 06:43 pm

This will get the previous and next photo for a user.

URL

<API_Endpoint>/users/{User}/photos/{PhotoId}/{Direction}

HTTP Method

GET

Formats

XML, JSON, JSONP

Authenticated

No

Input

{User} - Alias or Id for a user.

{PhotoId} - Id of a photo.

{Direction} - "Next", "Previous", or "Cursors"

Contents

N/A

Output

PhotoDetails (2 PhotoDetails if Direction is 'Cursors')

Parameters

N/A

Error Codes

400 BadRequest, 10006 InvalidPhotoId - {PhotoId} is not a number.
400 BadRequest; 10026 InvalidUserId - {User} does not exist.

Notes

N/A

Example

curl -X GET http://api.plixi.com/api/tpapi.svc/users/701/photos/1469/next

 
Topic is closed for comments