Skip to content

Instantly share code, notes, and snippets.

@cggaurav
Created August 7, 2014 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cggaurav/4727a9ca8647a8123252 to your computer and use it in GitHub Desktop.
Save cggaurav/4727a9ca8647a8123252 to your computer and use it in GitHub Desktop.
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