예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }