Skip to content

Instantly share code, notes, and snippets.

@DeeJayTC
Last active February 15, 2019 17:35
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 DeeJayTC/2e4092432cef61fba08a450b844b78fd to your computer and use it in GitHub Desktop.
Save DeeJayTC/2e4092432cef61fba08a450b844b78fd to your computer and use it in GitHub Desktop.
// Get all people in installation
var people = client.Projects.People.GetPeopleAsync();
// Get status updates by people in installation
var latestStatusMessages = client.Projects.People.GetPeopleStatusAsync();
// Find a person by email
var personByMail = client.Projects.People.GetPersonByMailAsync("max@teamwork.com");
// Get all active Projects
var projects = client.Projects.Projects.GetAllProjectsAsync(OnlyStarredProjects?)
// Get a specific project and its details by id
var project = client.Projects.Projects.GetProject(theID);
// You can chose to include tasks, milestones, people etc here
// Get all boards of a project
var boards = client.Projects.Boards.GetProjectBoardssAsync(theId);
// return time tracking totals for a given project and user
var totals = client.Projects.Time.GetTotals_Project(project,userid)
// Search for anything in Projects
// first param is the search term
// second is the type we are searching for
// available types are task, project, comment, message, notebook, person
var results = client.Projects.Projects.Search("Whatever we want to search for", "task")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment