/** * @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); }
/** * @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); }