Created
August 7, 2014 06:13
-
-
Save cggaurav/4727a9ca8647a8123252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addToList: (listId, userids) -> | |
userObj = userids.map (i) -> { id: i } | |
console.log 'HTTP:addUsersToList', userObj, listId | |
promise = $http.post(API_ENDPOINT + "/list/?access_token=" + Session.store.get("access_token"), | |
[ | |
{ | |
id: list_id | |
users: userObj | |
name: '' | |
} | |
] | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment