lib/bandwidth-sdk/api/mfa_api.rb in bandwidth-sdk-11.0.0.pre.beta.1.1 vs lib/bandwidth-sdk/api/mfa_api.rb in bandwidth-sdk-11.0.0.pre.beta.2.0
- old
+ new
@@ -4,11 +4,11 @@
#Bandwidth's Communication APIs
The version of the OpenAPI document: 1.0.0
Contact: letstalk@bandwidth.com
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 6.4.0
+OpenAPI Generator version: 6.5.0
=end
require 'cgi'
@@ -19,22 +19,22 @@
def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Messaging Authentication Code
# Send an MFA code via text message (SMS).
- # @param account_id [String] Bandwidth Account ID with Voice service enabled.
+ # @param account_id [String] Your Bandwidth Account ID.
# @param code_request [CodeRequest] MFA code request body.
# @param [Hash] opts the optional parameters
# @return [MessagingCodeResponse]
def generate_messaging_code(account_id, code_request, opts = {})
data, _status_code, _headers = generate_messaging_code_with_http_info(account_id, code_request, opts)
data
end
# Messaging Authentication Code
# Send an MFA code via text message (SMS).
- # @param account_id [String] Bandwidth Account ID with Voice service enabled.
+ # @param account_id [String] Your Bandwidth Account ID.
# @param code_request [CodeRequest] MFA code request body.
# @param [Hash] opts the optional parameters
# @return [Array<(MessagingCodeResponse, Integer, Hash)>] MessagingCodeResponse data, response status code and response headers
def generate_messaging_code_with_http_info(account_id, code_request, opts = {})
if @api_client.config.debugging
@@ -59,11 +59,11 @@
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
- header_params['Content-Type'] = content_type
+ header_params['Content-Type'] = content_type
end
# form parameters
form_params = opts[:form_params] || {}
@@ -93,22 +93,22 @@
return data, status_code, headers
end
# Voice Authentication Code
# Send an MFA Code via a phone call.
- # @param account_id [String] Bandwidth Account ID with Voice service enabled.
+ # @param account_id [String] Your Bandwidth Account ID.
# @param code_request [CodeRequest] MFA code request body.
# @param [Hash] opts the optional parameters
# @return [VoiceCodeResponse]
def generate_voice_code(account_id, code_request, opts = {})
data, _status_code, _headers = generate_voice_code_with_http_info(account_id, code_request, opts)
data
end
# Voice Authentication Code
# Send an MFA Code via a phone call.
- # @param account_id [String] Bandwidth Account ID with Voice service enabled.
+ # @param account_id [String] Your Bandwidth Account ID.
# @param code_request [CodeRequest] MFA code request body.
# @param [Hash] opts the optional parameters
# @return [Array<(VoiceCodeResponse, Integer, Hash)>] VoiceCodeResponse data, response status code and response headers
def generate_voice_code_with_http_info(account_id, code_request, opts = {})
if @api_client.config.debugging
@@ -133,11 +133,11 @@
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
- header_params['Content-Type'] = content_type
+ header_params['Content-Type'] = content_type
end
# form parameters
form_params = opts[:form_params] || {}
@@ -167,22 +167,22 @@
return data, status_code, headers
end
# Verify Authentication Code
# Verify a previously sent MFA code.
- # @param account_id [String] Bandwidth Account ID with Voice service enabled.
+ # @param account_id [String] Your Bandwidth Account ID.
# @param verify_code_request [VerifyCodeRequest] MFA code verify request body.
# @param [Hash] opts the optional parameters
# @return [VerifyCodeResponse]
def verify_code(account_id, verify_code_request, opts = {})
data, _status_code, _headers = verify_code_with_http_info(account_id, verify_code_request, opts)
data
end
# Verify Authentication Code
# Verify a previously sent MFA code.
- # @param account_id [String] Bandwidth Account ID with Voice service enabled.
+ # @param account_id [String] Your Bandwidth Account ID.
# @param verify_code_request [VerifyCodeRequest] MFA code verify request body.
# @param [Hash] opts the optional parameters
# @return [Array<(VerifyCodeResponse, Integer, Hash)>] VerifyCodeResponse data, response status code and response headers
def verify_code_with_http_info(account_id, verify_code_request, opts = {})
if @api_client.config.debugging
@@ -207,10 +207,10 @@
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
- header_params['Content-Type'] = content_type
+ header_params['Content-Type'] = content_type
end
# form parameters
form_params = opts[:form_params] || {}