Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.83 KB

CodeRequest.md

File metadata and controls

34 lines (25 loc) · 1.83 KB

CodeRequest

Properties

Name Type Description Notes
to str The phone number to send the mfa code to.
var_from str The application phone number, the sender of the mfa code.
application_id str The application unique ID, obtained from Bandwidth.
scope str An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to "2FA". [optional]
message str The message format of the mfa code. There are three values that the system will replace "{CODE}", "{NAME}", "{SCOPE}". The "{SCOPE}" and "{NAME} value template are optional, while "{CODE}" must be supplied. As the name would suggest, code will be replace with the actual mfa code. Name is replaced with the application name, configured during provisioning of mfa. The scope value is the same value sent during the call and partitioned by the server.
digits int The number of digits for your mfa code. The valid number ranges from 2 to 8, inclusively.

Example

from bandwidth.models.code_request import CodeRequest

# TODO update the JSON string below
json = "{}"
# create an instance of CodeRequest from a JSON string
code_request_instance = CodeRequest.from_json(json)
# print the JSON string representation of the object
print(CodeRequest.to_json())

# convert the object into a dict
code_request_dict = code_request_instance.to_dict()
# create an instance of CodeRequest from a dict
code_request_from_dict = CodeRequest.from_dict(code_request_dict)

[Back to Model list] [Back to API list] [Back to README]