예제 #1
0
파일: Voice.php 프로젝트: joedixon/nexmo
 /**
  * @param array $config
  */
 public function __construct(array $config = [])
 {
     // Set description_path.
     $config += ['description_path' => __DIR__ . '/descriptions/Voice.php'];
     // Create the Voice client.
     parent::__construct($config);
 }
예제 #2
0
 /**
  * @param array $config
  */
 public function __construct(array $config = [])
 {
     // Set description_path.
     $config += ['description_path' => __DIR__ . '/descriptions/Developer.php'];
     /**
      * The developer APIs expect the return content type to be
      * set using the Accept header rather than part of the API path
      */
     $config += ['http_client_options' => ['defaults' => ['headers' => ['Accept' => 'application/json']]]];
     // Create the Developer client.
     parent::__construct($config);
 }