Property | Type | Description | |
---|---|---|---|
$accessToken | Google\Spreadsheet\Request | Request object | |
$curlParams | array | cURL parameters | |
$headers | array | Request headers | |
$serviceUrl | string | Service url | |
$sslVerifyPeer | boolean | SSL verify peer | |
$tokenType | string | Token type (defaults to OAuth for BC) | |
$userAgent | string | User agent |
Method | Description | |
---|---|---|
__construct ( string $accessToken, string $tokenType = "OAuth" ) | Initializes the service request object. | |
addCurlParam ( string $name, mixed $value ) : |
Add an extra curl parameter or override an existing one | |
addHeader ( string $name, string $value ) : Google\Spreadsheet\DefaultServiceRequest | Add a header to the headers array | |
delete ( string $url ) : string | Perform a delete request | |
get ( string $url ) : string | Perform a get request | |
getCurlParams ( ) : array | Get currently set curl params | |
getHeaders ( ) : array | Get request headers | |
getServiceUrl ( ) : string | Get the hostname of the spreadsheet service | |
getSslVerifyPeer ( ) : boolean | Get the value for verifying the peers ssl certificate. | |
getUserAgent ( ) : string | Get the user agent | |
post ( string $url, mixed $postData ) : string | Perform a post request | |
put ( string $url, mixed $postData ) : string | Perform a put request | |
removeHeader ( string $name ) : Google\Spreadsheet\DefaultServiceRequest | ||
setHeaders ( array $headers ) : Google\Spreadsheet\DefaultServiceRequest | Set optional request headers. | |
setSslVerifyPeer ( boolean $sslVerifyPeer ) : |
Verify the peer"s ssl certificate | |
setUserAgent ( string $userAgent ) : Google\Spreadsheet\DefaultServiceRequest | Set the user agent. It is a good ides to leave this as is. |
Method | Description | |
---|---|---|
execute ( $ch ) : string | Executes the api request. | |
initRequest ( string $url, array $requestHeaders = [] ) : resource | Initialize the curl session |
public __construct ( string $accessToken, string $tokenType = "OAuth" ) | ||
$accessToken | string | |
$tokenType | string |
public addCurlParam ( string $name, mixed $value ) : |
||
$name | string | 'CURLOPT_*' constant |
$value | mixed | |
return |
public getCurlParams ( ) : array | ||
return | array |
public getServiceUrl ( ) : string | ||
return | string |
public getSslVerifyPeer ( ) : boolean | ||
return | boolean |
protected initRequest ( string $url, array $requestHeaders = [] ) : resource | ||
$url | string | |
$requestHeaders | array | |
return | resource |
public removeHeader ( string $name ) : Google\Spreadsheet\DefaultServiceRequest | ||
$name | string | |
return | Google\Spreadsheet\DefaultServiceRequest |
public setHeaders ( array $headers ) : Google\Spreadsheet\DefaultServiceRequest | ||
$headers | array | associative array of key value pairs |
return | Google\Spreadsheet\DefaultServiceRequest |
public setSslVerifyPeer ( boolean $sslVerifyPeer ) : |
||
$sslVerifyPeer | boolean | |
return |
public setUserAgent ( string $userAgent ) : Google\Spreadsheet\DefaultServiceRequest | ||
$userAgent | string | |
return | Google\Spreadsheet\DefaultServiceRequest |
protected Request,Google\Spreadsheet $accessToken | ||
return | Google\Spreadsheet\Request |
protected string $tokenType | ||
return | string |