Set the name of your application and application version that will be appended to the User-Agent header of all requests.
string $userAgent User agent string:
bool $includeDefault Set to TRUE to append the default Guzzle use agent:
Overrides ClientInterface::setUserAgent
public function setUserAgent($userAgent, $includeDefault = false) {
if ($includeDefault) {
$userAgent .= ' ' . Utils::getDefaultUserAgent();
}
$this->defaultHeaders
->set('User-Agent', $userAgent);
return $this;
}