Download the PHP package onuraycicek/laravel-whatsapp-cloud-api without Composer
On this page you can find all versions of the php package onuraycicek/laravel-whatsapp-cloud-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onuraycicek/laravel-whatsapp-cloud-api
More information about onuraycicek/laravel-whatsapp-cloud-api
Files in onuraycicek/laravel-whatsapp-cloud-api
Package laravel-whatsapp-cloud-api
Short Description This is my package laravel-whatsapp-cloud-api
License MIT
Homepage https://github.com/onuraycicek/laravel-whatsapp-cloud-api
Informations about the package laravel-whatsapp-cloud-api
WCA Package ReadMe
Introduction
This package is designed to facilitate interactions with the WCA API, providing functionality for handling business profiles, uploading and sending media, and managing phone numbers. You can see the demo application by running the laravel project in the example folder.
Installation
To install the WCA package, use the following composer command:
Configuration
Before using the package, ensure that you have the following environment variables set in your .env file:
Usage
Business Profile
To retrieve the business profile information:
Upload and Send Media
To upload and send media:
Retrieve Business Phone Numbers
To retrieve the business phone numbers:
Error Handling
The package includes error handling to catch and return meaningful messages when exceptions occur. When an error occurs, the message is decoded and returned if it is a JSON object; otherwise, the raw message is returned.