Пример #1
0
 /**
  * Initiates organization object
  *
  * @param Client $client Billy API Client
  *
  * @throws Exception
  */
 public function __construct($client)
 {
     $response = $client->get('/organization');
     if ($response->isSuccess()) {
         $this->organization = $response->getBody()->organization;
     } else {
         throw new BillyException('Unable to retrieve organization information.');
     }
 }