AfricasTalking class Null safety

This class wraps some functionalities from Africa's Talking API The functionalities implemented are;

  1. Sms
  • send message
  • fetch messages
  • generate checkout token
  • subscribe phone number
  • fetch subscriptions
  • delete a subscription
  1. Airtime
  • send airtime
  • check airtime transaction status
  1. Voice cal;

Constructors

AfricasTalking(String username, String apiKey)

Properties

apiKey String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isLive bool
when true, the package uses the live API endpoint else the sandbox endpoint
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
username String
read / write

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 non-existent 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