ricardoapaes/whaticket-api

There is no license information available for the latest version (v1.0.0) of this package.

Communication with whatsapp api.

v1.0.0 2022-05-16 13:17 UTC

This package is auto-updated.

Last update: 2024-04-16 21:13:30 UTC


README

Installation

composer require ricardoapaes/whaticket-api

Send message

$api = new Api('WHATICKET_BASEURL', 'WHATICKET_TOKEN');
$api->sendMessage('NUMBER', 'Whaticket api test', 'WHATICKET_WHATSAPP_ID or null');

Send media

$api = new Api('WHATICKET_BASEURL', 'WHATICKET_TOKEN');
$api->sendMedia('NUMBER', 'SRC_MEDIA', 'WHATICKET_WHATSAPP_ID or null');

Enviroment Variables for testing

  • PHP_VERSION: Choose from the following versions: 56|73|74|80
  • WHATICKET_BASEURL: Whaticket base url
  • WHATICKET_TOKEN: Whaticket API token
  • WHATICKET_NUMBER: Number used to run automated tests.
  • WHATICKET_ID: Whaticket connection id used to run automated tests.