Asana::getUserInfo PHP Méthode

getUserInfo() public méthode

Call it without parameters to get the users info of the owner of the API key.
public getUserInfo ( string $userId = null, array $opts = [] ) : string
$userId string
$opts array Array of options to pass (@see https://asana.com/developers/documentation/getting-started/input-output-options)
Résultat string JSON or null
    public function getUserInfo($userId = null, array $opts = array())
    {
        $options = http_build_query($opts);
        if (is_null($userId)) {
            $userId = 'me';
        }
        return $this->askAsana($this->userUrl . '/' . $userId . '?' . $options);
    }