code: public function getScriptTag($version = null, $async = false, $full = true)
      {
          $async_attr = $async ? 'async="true"' : '';
          $result = <<<EOT
  <script>UPLOADCARE_PUBLIC_KEY = "{$this->api->getPublicKey()}";</script>
  <script {$async_attr} src="{$this->getScriptSrc($version, $full)}" charset="UTF-8"></script>
  EOT;
          return $result;
      }
docs: Returns <script> sections to include Uploadcare widget
  
  @param string $version Uploadcare version
  @param bool $async
  @return string