whatsapp_otp 0.0.1 copy "whatsapp_otp: ^0.0.1" to clipboard
whatsapp_otp: ^0.0.1 copied to clipboard

A flutter widget for get market coin details.

README.md

Whatsapp OTP Sender & Crypto Coin Data Plugin #

Welcome to the Whatsapp OTP Sender & Crypto Coin Data Plugin! This Flutter package allows you to send OTPs via WhatsApp and fetch cryptocurrency data easily within your Flutter applications.

Installation #

To use this package, add whatsapp_otp as a dependency in your pubspec.yaml file.

dependencies:
  flutter:
    sdk: flutter
  whatsapp_otp: ^0.1.0 # Check for latest version on pub.dev

Then, run:

$ flutter pub get

Usage #

Sending OTPs via WhatsApp #

To send an OTP via WhatsApp, simply call the sendOTP function provided by the package and provide the recipient's phone number along with the OTP.

import 'package:whatsapp_otp/whatsapp_otp.dart';

// Inside your function or wherever needed
void sendOTP() {
  String recipientNumber = '+1234567890'; // Phone number to receive OTP
  String otp = '1234'; // OTP to send
  
  WhatsappOTPSender.sendOTP(recipientNumber, otp);
}

Fetching Crypto Coin Data #

To fetch cryptocurrency data, use the fetchCryptoData function provided by the package. This function returns a CryptoData object containing relevant information about the requested cryptocurrency.

import 'package:whatsapp_otp/whatsapp_otp.dart';

// Inside your async function or wherever needed
void fetchCrypto() async {
  String cryptoSymbol = 'BTC'; // Cryptocurrency symbol (e.g., BTC, ETH, etc.)
  
  CryptoData cryptoData = await WhatsappOTPSender.fetchCryptoData(cryptoSymbol);
  
  // Accessing crypto data
  print('Crypto Name: ${cryptoData.name}');
  print('Current Price: ${cryptoData.price}');
  print('Market Cap: ${cryptoData.marketCap}');
  // Add more fields as needed
}

Testing Period #

Please note that this package is currently in a testing period, and some features may not be fully functional. Your feedback and contributions are highly appreciated to improve this package further.

Issues & Contributions #

If you encounter any issues or have suggestions for improvements, feel free to open an issue or create a pull request on GitHub.

License #

This package is released under the MIT License. Feel free to use, modify, and distribute this package as per the terms of the license.


Feel free to customize this README according to your specific package features, guidelines, and preferences.

1
likes
140
points
13
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A flutter widget for get market coin details.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on whatsapp_otp