If both AuthSub and ClientLogin tokens are set,
AuthSub takes precedence. If an AuthSub key is set, then
secure AuthSub authentication is used, and the request is signed.
Requests must be signed only with the private key corresponding to the
public key registered with Google. If an AuthSub key is set, but
openssl support is not enabled in the PHP installation, an exception is
thrown.
public filterHttpRequest ( string $method, string $url, array $headers = [], string $body = null, string $contentType = null ) : array | ||
$method | string | The HTTP method |
$url | string | The URL |
$headers | array | An associate array of headers to be sent with the request or null |
$body | string | The body of the request or null |
$contentType | string | The MIME content type of the body or null |
return | array | The processed values in an associative array, using the same names as the params |