seregazhuk\PinterestBot\Api\CurlHttpClient::init PHP Метод

init() защищенный Метод

Initializes curl resource with options.
protected init ( string $url, string $postString, array $headers )
$url string
$postString string
$headers array
    protected function init($url, $postString, $headers)
    {
        $this->headers = $headers;
        $this->curl = curl_init($url);
        if (empty($this->cookieJar)) {
            $this->loadCookies();
        }
        curl_setopt_array($this->curl, $this->makeHttpOptions($postString));
        return $this;
    }