프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 |
public getServiceUrl ( ) : string | ||
리턴 | string |
public getSslVerifyPeer ( ) : boolean | ||
리턴 | boolean |
protected initRequest ( string $url, array $requestHeaders = [] ) : resource | ||
$url | string | |
$requestHeaders | array | |
리턴 | resource |
public removeHeader ( string $name ) : Google\Spreadsheet\DefaultServiceRequest | ||
$name | string | |
리턴 | Google\Spreadsheet\DefaultServiceRequest |
public setHeaders ( array $headers ) : Google\Spreadsheet\DefaultServiceRequest | ||
$headers | array | associative array of key value pairs |
리턴 | Google\Spreadsheet\DefaultServiceRequest |
public setSslVerifyPeer ( boolean $sslVerifyPeer ) : |
||
$sslVerifyPeer | boolean | |
리턴 |
public setUserAgent ( string $userAgent ) : Google\Spreadsheet\DefaultServiceRequest | ||
$userAgent | string | |
리턴 | Google\Spreadsheet\DefaultServiceRequest |
protected Request,Google\Spreadsheet $accessToken | ||
리턴 | Google\Spreadsheet\Request |