sdksio/whatsapp-cloud-api-sdk

Use cloud-hosted version of the WhatsApp Business API to send and receive messages

1.0.0 2023-06-08 10:09 UTC

This package is auto-updated.

Last update: 2024-12-07 10:06:35 UTC


README

Introduction

Welcome to the WhatsApp API from Meta.

Individual developers and existing Business Service Providers (BSPs) can now send and receive messages via the WhatsApp API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective way for businesses to use WhatsApp. Please keep in mind the following configurations:

Install the Package

Run the following command to install the package and automatically add the dependency to your composer.json file:

composer require "sdksio/whatsapp-cloud-api-sdk:1.0.0"

Or add it to the composer.json file manually as given below:

"require": {
    "sdksio/whatsapp-cloud-api-sdk": "1.0.0"
}

You can also view the package at: https://packagist.org/packages/sdksio/whatsapp-cloud-api-sdk#1.0.0

Initialize the API Client

Note: Documentation for the client can be found here.

The following parameters are configurable for the API Client:

The API client can be initialized as follows:

$client = WhatsAppCloudAPIClientBuilder::init()
    ->accessToken('AccessToken')
    ->environment('production')
    ->version('v13.0')
    ->build();

Authorization

This API uses OAuth 2 Bearer token.

List of APIs

Classes Documentation