AfricasTalking class
This class wraps some functionalities from Africa's Talking API The functionalities implemented are;
- Sms
- send message
- fetch messages
- generate checkout token
- subscribe phone number
- fetch subscriptions
- delete a subscription
- Airtime
- send airtime
- check airtime transaction status
- Voice cal;
Constructors
- AfricasTalking.new(String username, String apiKey)
Properties
- apiKey ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLive ↔ bool
-
when true, the package uses the live API endpoint else the sandbox endpoint
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username ↔ String
-
getter/setter pair
Methods
-
airtime(
) → Airtime -
httpGetProcess(
String url, Map< String, dynamic> body) → Future<Response> -
httpPostProcess(
String url, Map< String, dynamic> body) → Future<Response> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sms(
String shortCode) → Sms - This exposes Sms instance, it takes your registered short code or alphanumeric, defaults to AFRICASTKNG
-
toString(
) → String -
A string representation of this object.
inherited
-
voiceCall(
String phoneNo) → VoiceCall - This exposes VoiceCall instance, it takes Your Africa’s Talking phone number
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited