FAQ/API Documentation/Voting Resources

Vote For Photo

Lockerz Admin
posted this on December 05, 2010 07:19 pm

Vote for a photo, either up or down.

URL

<API_Endpoint>/photos/{PhotoId}/{VoteValue}

HTTP Method

PUT

Formats

XML, JSON

Authenticated

Yes

Input

{PhotoId} - Id of a photo.
{VoteValue} - VoteType enum value.

Contents

N/A

Output

PhotoVoteResponse

<SessionKeyOperationResponse>

    <BroadcastMessage>I just voted for this photo</BroadcastMessage>

</SessionKeyOperationResponse>

{"BroadcastMessage":"I just voted for this photo "}

Parameters

N/A

Error Codes

400 BadRequest.
10027 BadEnumValue
400 BadRequest
10006 InvalidPhotoId - {PhotoId} is not a number

Notes

N/A

Example

curl -X PUT http://api.plixi.com/api/tpapi.svc/photos/9/ThumbsUp -u bbbb@foo2.com:password  -H "TPSERVICE:Plixi"

 
Topic is closed for comments