whatsapp_author 0.0.6 copy "whatsapp_author: ^0.0.6" to clipboard
whatsapp_author: ^0.0.6 copied to clipboard

A new Sharara Package for facilitating Building Apps With Flutter.

whatsapp_author is a package for authenticating users using whats app with easy approach .

Features #

  • easy to use
  • clear structure
  • contains error handler
  • protected from throwing errors

Getting started #

  • add whatsapp_author package to your project by using terminal
flutter pub add whatsapp_author
  • create facebook business account and then provide access token , template and phone number for sending auth messages
  • create WhatsAppAuthor object
WhatsAppAuthor whatsAppAuthor = WhatsAppAuthor(accessToken: accessToken, fromPhoneNumberId: fromPhoneNumberId, templateName: templateName);
  • then send the verification code using static method [sendCodeToWhatsAppAccount] method
final String toPhoneNumber = "+00000000";
final String verificationCode = "8468315";
final bool sent = await WhatsAppApiCaller.sendCodeToWhatsAppAccount(author:whatsAppAuthor, code:verificationCode, toPhoneNumber: toPhoneNumber);
 if(sent){
   print("verification code sent successfully");
} else {
   print("error");
}
1
likes
105
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

A new Sharara Package for facilitating Building Apps With Flutter.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on whatsapp_author