/** * Get a specific user * * @param string $id The id of the user to fetch * * @return object The user object matching the id requested */ public function user($id) { return GoCardless_User::find_with_client($this, $id); }
/** * Get a specific user * * @param string $id The id of the user to fetch * * @return object The user object matching the id requested */ public function user($id) { if (!isset($this->account_details['access_token'])) { throw new GoCardless_ClientException('Access token missing'); } return GoCardless_User::find_with_client($this, $id); }