Skip to content

Commit 2867799

Browse files
authored
Merge pull request #12 from albanafmeti/patch-1
get all users with different fields. Not only id and name.
2 parents 65702ff + a86dc53 commit 2867799

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Asana.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ public function getCurrentUser()
7171
*
7272
* @return string|null
7373
*/
74-
public function getUsers()
74+
public function getUsers($opt_fields = null)
7575
{
76-
return $this->curl->get('users');
76+
$url = $opt_fields ? 'users?opt_fields=' . $opt_fields : 'users';
77+
return $this->curl->get($url);
7778
}
7879

7980
/**

0 commit comments

Comments
 (0)