public function __construct($public_key, $secret_key, $userAgentName = null, $cdn_host = null, $cdn_protocol = null, $retry_throttled = null)
{
$this->public_key = $public_key;
$this->secret_key = $secret_key;
$this->widget = new Widget($this);
$this->uploader = new Uploader($this);
if ($cdn_host !== null) {
$this->cdn_host = $cdn_host;
}
if ($cdn_protocol !== null) {
$this->cdn_protocol = $cdn_protocol;
}
if ($retry_throttled !== null) {
$this->retry_throttled = $retry_throttled;
}
if ($userAgentName !== null) {
$this->userAgentName = $userAgentName;
}
}