Termii class
An API to send and verify text/voice messages.
Properties
- apiKey → String
-
API calls are authenticated by including your API key in the body of the request you make.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderId → String
-
A Sender ID is the name or number that identifies the sender of an SMS message.
final
- url → String
-
The base URL is used to route your request to the appropriate "regulatory region" and to optimize traffic between data centers with the region.
final
Methods
-
detectPhoneNumberStatus(
{required String phoneNumber, required String countryCode}) → Future - The status API allows businesses to detect if a number is fake or has ported to a new network.
-
generateInAppToken(
{required String destination, required int pinAttempts, required int pinExpiryTime, required int pinLength, required MessageType pinType}) → Future - This API returns OTP codes in JSON format which can be used within any web or mobile app.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchPhoneNumber(
{required String phoneNumber}) → Future - The search API allows businesses verify phone numbers and automatically detect their status as well as current network.
-
sendBulkSms(
{required List< String> multipleDestinations, required String message, String channel = 'generic'}) → Future - Send bulk text messages across different messaging channels to multiple phone numbers.
-
sendMediaSms(
{required String destination, required String mediaUrl, String channel = 'generic', String? mediaCaption}) → Future - Send media messages across different messaging channels.
-
sendSms(
{required String destination, required String message, String channel = 'generic'}) → Future - Send text messages across different messaging channels.
-
sendSmsWithAutoGeneratedNumber(
{required String destination, required String message}) → Future - Send messages with auto-generated messaging numbers that adapt to customers location.
-
sendToken(
{required String destination, required MessageType messageType, String channel = 'generic', required int pinAttempts, required int pinExpiryTime, required int pinLength, required String pinPlaceholder, required String messageText, required MessageType pinType}) → Future - The send token triggers one-time-passwords (OTP) across any available messaging channel.
-
sendVoiceCall(
{required String destination, required int code}) → Future - Send messages from your application through our voice channel to a phone number.
-
sendVoiceToken(
{required String destination, required int pinAttempts, required int pinExpiryTime, required int pinLength}) → Future - Trigger one-time passwords (OTP) through the voice channel to a phone number.
-
toString(
) → String -
A string representation of this object.
inherited
-
veiwBalance(
{required String pinId, required String pin}) → Future - The Balance API returns your total balance and balance information from your wallet, such as currency.
-
verifyToken(
{required String pinId, required String pin}) → Future - Verify token API, checks tokens sent to customers and returns a response confirming the status of the token.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited