Skip to content

Commit

Permalink
Support for getMyTeams()
Browse files Browse the repository at this point in the history
Returns all teams the logged in user is associated with
  • Loading branch information
sammythesm committed Sep 3, 2016
1 parent a3f968f commit bd6825a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions asana.php
Expand Up @@ -874,7 +874,16 @@ public function getTeamsInOrganization($organizationId)
{
return $this->askAsana($this->organizationsUrl . '/' . $organizationId . '/teams');
}

/**
* Returns all teams the logged in user is associated with
* @param string $organizationId
*/

public function getMyTeams($organizationId)
{
return $this->askAsana($this->userUrl.'/me/teams?organization='.$organizationId);
}

/**
* Function to create a team in an Organization.
Expand Down

0 comments on commit bd6825a

Please sign in to comment.