Skip to content

Commit

Permalink
update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Dec 30, 2024
1 parent b091589 commit 9ccea36
Show file tree
Hide file tree
Showing 75 changed files with 94 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{{#authMethods}}
{{#isOAuth}}
#' @field oauth_flow_type OAuth flow type
#' @field oauth_authorization_url authorization URL
#' @field oauth_authorization_url Authorization URL
#' @field oauth_token_url Token URL
#' @field oauth_pkce Boolean flag to enable PKCE
{{/isOAuth}}
Expand Down Expand Up @@ -73,7 +73,7 @@ ApiClient <- R6::R6Class(
{{#isOAuth}}
# Flow type
oauth_flow_type = "{{flow}}",
# authorization URL
# Authorization URL
oauth_authorization_url = "{{authorizationUrl}}",
# Token URL
oauth_token_url = "{{tokenUrl}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{{#authMethods}}
{{#isOAuth}}
#' @field oauth_flow_type OAuth flow type
#' @field oauth_authorization_url authorization URL
#' @field oauth_authorization_url Authorization URL
#' @field oauth_token_url Token URL
#' @field oauth_pkce Boolean flag to enable PKCE
#' @field oauth_scopes OAuth scopes
Expand Down Expand Up @@ -73,7 +73,7 @@ ApiClient <- R6::R6Class(
{{#isOAuth}}
# Flow type
oauth_flow_type = "{{flow}}",
# authorization URL
# Authorization URL
oauth_authorization_url = "{{authorizationUrl}}",
# Token URL
oauth_token_url = "{{tokenUrl}}",
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/r/R/api_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ApiClient <- R6::R6Class(
#' @param bearer_token Bearer token.
#' @param timeout Timeout.
#' @param retry_status_codes Status codes for retry.
#' @param max_retry_attempts Maxmium number of retry.
#' @param max_retry_attempts Maximum number of retry.
#' @export
initialize = function(base_path = NULL, user_agent = NULL,
default_headers = NULL,
Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/R-httr2-wrapper/R/api_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' @field oauth_secret OAuth secret
#' @field oauth_refresh_token OAuth refresh token
#' @field oauth_flow_type OAuth flow type
#' @field oauth_authorization_url Authoriziation URL
#' @field oauth_authorization_url Authorization URL
#' @field oauth_token_url Token URL
#' @field oauth_pkce Boolean flag to enable PKCE
#' @field oauth_scopes OAuth scopes
Expand Down Expand Up @@ -68,7 +68,7 @@ ApiClient <- R6::R6Class(
# OAuth2
# Flow type
oauth_flow_type = "implicit",
# Authoriziation URL
# Authorization URL
oauth_authorization_url = "http://petstore.swagger.io/api/oauth/dialog",
# Token URL
oauth_token_url = "",
Expand Down Expand Up @@ -99,7 +99,7 @@ ApiClient <- R6::R6Class(
#' @param bearer_token Bearer token.
#' @param timeout Timeout.
#' @param retry_status_codes Status codes for retry.
#' @param max_retry_attempts Maxmium number of retry.
#' @param max_retry_attempts Maximum number of retry.
#' @export
initialize = function(base_path = NULL, user_agent = NULL,
default_headers = NULL,
Expand Down Expand Up @@ -296,7 +296,7 @@ ApiClient <- R6::R6Class(

req <- req %>% req_oauth_auth_code(client, scope = req_oauth_scopes,
pkce = self$oauth_pkce,
auth_url = self$oauth_authoriziation_url)
auth_url = self$oauth_authorization_url)
}

# stream data
Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/R-httr2/R/api_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' @field oauth_secret OAuth secret
#' @field oauth_refresh_token OAuth refresh token
#' @field oauth_flow_type OAuth flow type
#' @field oauth_authorization_url Authoriziation URL
#' @field oauth_authorization_url Authorization URL
#' @field oauth_token_url Token URL
#' @field oauth_pkce Boolean flag to enable PKCE
#' @field oauth_scopes OAuth scopes
Expand Down Expand Up @@ -68,7 +68,7 @@ ApiClient <- R6::R6Class(
# OAuth2
# Flow type
oauth_flow_type = "implicit",
# Authoriziation URL
# Authorization URL
oauth_authorization_url = "http://petstore.swagger.io/api/oauth/dialog",
# Token URL
oauth_token_url = "",
Expand Down Expand Up @@ -99,7 +99,7 @@ ApiClient <- R6::R6Class(
#' @param bearer_token Bearer token.
#' @param timeout Timeout.
#' @param retry_status_codes Status codes for retry.
#' @param max_retry_attempts Maxmium number of retry.
#' @param max_retry_attempts Maximum number of retry.
#' @export
initialize = function(base_path = NULL, user_agent = NULL,
default_headers = NULL,
Expand Down Expand Up @@ -296,7 +296,7 @@ ApiClient <- R6::R6Class(

req <- req %>% req_oauth_auth_code(client, scope = req_oauth_scopes,
pkce = self$oauth_pkce,
auth_url = self$oauth_authoriziation_url)
auth_url = self$oauth_authorization_url)
}

# stream data
Expand Down
6 changes: 3 additions & 3 deletions samples/client/petstore/R/R/api_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' @field oauth_secret OAuth secret
#' @field oauth_refresh_token OAuth refresh token
#' @field oauth_flow_type OAuth flow type
#' @field oauth_authorization_url Authoriziation URL
#' @field oauth_authorization_url Authorization URL
#' @field oauth_token_url Token URL
#' @field oauth_pkce Boolean flag to enable PKCE
#' @field bearer_token Bearer token
Expand Down Expand Up @@ -68,7 +68,7 @@ ApiClient <- R6::R6Class(
# OAuth2
# Flow type
oauth_flow_type = "implicit",
# Authoriziation URL
# Authorization URL
oauth_authorization_url = "http://petstore.swagger.io/api/oauth/dialog",
# Token URL
oauth_token_url = "",
Expand Down Expand Up @@ -97,7 +97,7 @@ ApiClient <- R6::R6Class(
#' @param bearer_token Bearer token.
#' @param timeout Timeout.
#' @param retry_status_codes Status codes for retry.
#' @param max_retry_attempts Maxmium number of retry.
#' @param max_retry_attempts Maximum number of retry.
#' @export
initialize = function(base_path = NULL, user_agent = NULL,
default_headers = NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ web::json::value ModelBase::toJson( const std::vector<T>& value )
template<typename T>
web::json::value ModelBase::toJson( const std::set<T>& value )
{
// There's no protoype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array.
// There's no prototype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array.
std::vector<web::json::value> ret;
for ( const auto& x : value )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k
public string SigningAlgorithm { get; set; }

/// <summary>
/// Gets the Signature validaty period in seconds
/// Gets the Signature validity period in seconds
/// </summary>
public int SignatureValidityPeriod { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k
public string SigningAlgorithm { get; set; }

/// <summary>
/// Gets the Signature validaty period in seconds
/// Gets the Signature validity period in seconds
/// </summary>
public int SignatureValidityPeriod { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k
public string SigningAlgorithm { get; set; }

/// <summary>
/// Gets the Signature validaty period in seconds
/// Gets the Signature validity period in seconds
/// </summary>
public int SignatureValidityPeriod { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k
public string SigningAlgorithm { get; set; }

/// <summary>
/// Gets the Signature validaty period in seconds
/// Gets the Signature validity period in seconds
/// </summary>
public int SignatureValidityPeriod { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k
public string SigningAlgorithm { get; set; }

/// <summary>
/// Gets the Signature validaty period in seconds
/// Gets the Signature validity period in seconds
/// </summary>
public int SignatureValidityPeriod { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString?
public string SigningAlgorithm { get; set; }

/// <summary>
/// Gets the Signature validaty period in seconds
/// Gets the Signature validity period in seconds
/// </summary>
public int SignatureValidityPeriod { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs
public Exception Exception { get; }

/// <summary>
/// The ExcepetionEventArgs
/// The ExceptionEventArgs
/// </summary>
/// <param name="exception"></param>
public ExceptionEventArgs(Exception exception)
Expand Down
Loading

0 comments on commit 9ccea36

Please sign in to comment.