FAQ/API Documentation/Favoriting Resources

Add User Favorite

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

This call will let a user favorite a photo.

URL

<API_Endpoint>/users/{User}/favorites/{PhotoId}

HTTP Method

POST

Formats

XML, JSON

Authenticated

Yes

Input

{User} - Alias or Id for a user.
{PhotoId} - Id of a photo.

Contents

N/A

Output

AddFavoriteOperationResponse

<SessionKeyOperationResponse>

    <BroadcastMessage>I just favorited this photo</BroadcastMessage>

</SessionKeyOperationResponse>

{"BroadcastMessage":"I just favorited this photo "}

Parameters

N/A

Error Codes

N/A

Notes

N/A

Example

curl -X POST http://api.plixi.com/api/tpapi.svc/users/723/favorites/1529 -u bbbb@foo2.com:password  -H "TPSERVICE:Plixi"

 
Topic is closed for comments