public function setHeaders(array $headers, $reset = false)
    {
        if ($reset === true) {
            $this->api_headers = $headers;
        } else {
            $this->api_headers += $headers;
        }

        return $this;
    }
public function setHeaders(array $headers, $reset = false)
    {
        if ($reset === true) {
            $this->api_headers = $headers;
        } else {
            $this->api_headers += $headers;
        }

        return $this;
    }
public function setHeaders ( array $ headers , $ reset = false ) { if ( $ reset === true ) { $ this -> api_headers = $ headers ; } else { $ this -> api_headers += $ headers ; } return $ this ; }
Set the headers for all requests

@param array $headers Global headers for all future requests
@param bool $reset
@return $this
Set the headers for all requests