php-bitpay-client/examples/SetCurlOptions.php
2019-02-13 13:46:22 +01:00

17 lines
397 B
PHP

<?php
/**
* Copyright (c) 2014-2015 BitPay
*/
require __DIR__ . '/../vendor/autoload.php';
// Customize the curl options
$curl_options = array(
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
);
// If nothing is passed into the CurlAdapter
// then default values are used
$adapter = new Bitpay\Client\Adapter\CurlAdapter($curl_options);