whatsapp_author

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

whatsapp author

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
copied to clipboard

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);
copied to clipboard

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");
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.