/**
  * Get CDN OAuth access and retrieve API Credentials
  *
  * @return void
  */
 function action_cdn_oauth_access()
 {
     require_once W3TC_LIB_W3_DIR . '/Request.php';
     include W3TC_LIB_OAUTH_DIR . '/OAuthService.php';
     $type = W3_Request::get_string('type');
     $oauthClient = OAuthService::get_oauth_client($type);
     $oauthClient->print_javascript();
 }