´╗┐User Collection

Resource Properties

Name Description Returns
id the id of the list string
name the name of the list string
facebookUserId the facebook id of the user who created this list number
drinks the drinks in this list array of entity reference to drinks

HTTP(s) GET Operations

Listing User Collections

NOTE: You are only allowed to list your own lists. Therefore a facebook User Access Token must be provided. See Facebook's Developer site in order to find out how to get one.

/usercollections/?authtoken=access_token

Showing specific user collection

/usercollections/user_collection_id/

Showing a user collections flip side

What other drinks can be made with the ingredients from the drinks in this list

/usercollections/user_collection_id/flipside/

JavaScript Client Library

NOTE:A facebook User Authentication Token must be provided.

Creating User Collections

addb.usercollections.create(name, callback,"whiskey-sour", "expresso-martini"); 

Updating User Collections

addb.usercollections.update(id, name, callback, "whiskey-sour", "expresso-martini"); 

Deleting User Collections

addb.usercollections.deleteUserCollection(id, callback);

By User Collections flipside

addb.usercollections.flipside(id, callback);

.Net Client Library

NOTE:A facebook User Authentication Token must be provided.

Creating User Collections

var userCollections = ADDbClient.UserCollections().Create(facebookAuthToken, listName, "whiskey-sour", "expresso-martini");

Updating User Collections

var userCollections = ADDbClient.UserCollections().Update(facebookAuthToken, listId, name, "whiskey-sour", "expresso-martini");

Deleting User Collections

var userCollections = ADDbClient.UserCollections().Delete(facebookAuthToken, listId);

By facebook user

var userCollections = ADDbClient.UserCollections().ForFacebookUser(facebookAuthToken);