FAQ/API Documentation/Photo Resources

Set Photo Location

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

This call will let you pass a location of where the photo was taken.

URL

<API_Endpoint>/photos/{PhotoId}/location

HTTP Method

PUT

Formats

XML, JSON

Authenticated

Yes

Input

{PhotoId} Id of the photo whose location is being set.

Contents

{Latitude},{Longitude}

Output

SessionKeyOperationResponse

Parameters

N/A

Error Codes

400 BadRequest, 10029 BadGeoFormat - Contents are badly formatted.
400 BadRequest, 10005 BadGeoLocation - Contents are not proper coordinates.
400 BadRequest, 10006 InvalidPhotoId - {PhotoId} is not a number.
400 BadRequest, 10007 PhotoDoesntExist - {PhotoId} does not exists.
403 Forbidden - Credentials are not valid.
403 Forbidden, 10030 NotPhotoOwner - Not the photo owner.

Notes

N/A

Example

curl -X PUT http://api.plixi.com/api/tpapi.svc/photos/1469/location -u mlinenweber14zz@gmail.com:password -H"TPSERVICE:Plixi" -d "15.345678,90.123456"

 
Topic is closed for comments