Class: User

User(self)

new User(self)

A new user api object.
Parameters:
Name Type Description
self object is `this` from index.js
Source:

Methods

get(id, callback)

returns a specific user's profile
Parameters:
Name Type Description
id string the user id to look up
callback requestCallback a function to call when we're done getting data
Source:

getAllCampaign(id, callback)

returns an both team and self campaigns for a user
Parameters:
Name Type Description
id string the user to look up
callback requestCallback a function to call when we're done getting data
Source:

getSelfCampaigns(id, callback)

returns self campaigns for a user
Parameters:
Name Type Description
id string the user id to look up
callback requestCallback a function to call when we're done getting data
Source:

getTeams(id, callback)

get teams a user is part of
Parameters:
Name Type Description
id string the user to look up
callback requestCallback a function to call when we're done getting data
Source:

self(callback)

returns your own user
Parameters:
Name Type Description
callback requestCallback a function to call when we're done getting data
Source: