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
Requires
- php: >=5.6
- ext-curl: *
- guzzlehttp/guzzle: ^6.0 | ^7.0
Requires (Dev)
- phpunit/phpunit: ^5.0 || ^9.0
This package is auto-updated.
Last update: 2024-11-16 22:22:14 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.