Download the PHP package michalwolinski/wbiztool-php without Composer
On this page you can find all versions of the php package michalwolinski/wbiztool-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michalwolinski/wbiztool-php
More information about michalwolinski/wbiztool-php
Files in michalwolinski/wbiztool-php
Package wbiztool-php
Short Description A PHP client library for accessing WbizTool API
License MIT
Informations about the package wbiztool-php
WbizTool Client PHP Library
A PHP client library for accessing WbizTool API
Installation by Composer
Run
in console to install this library.
Usage
First, you need to initialize the Credentials and Client objects.
Load library and set up credentials
Message Types
You can choose one of few message types described below.
Text
Text message as argument
Image URL
Text message with image
- Message
- Image Url
File URL
Text message with file
- Message
- File Url
- File Name
Methods
Send Message
This method sends the message directly.
Arguments:
- SendMessage object
- Receiver object (Phone number as argument)
- MessageType object
Schedule Message
This method schedule the message.
Arguments:
- ScheduleMessage object (Carbon object with scheduled date and time, Timezone)
- Receiver object (Phone number as argument)
- MessageType object
Cancel Message
This method cancel pending message.
Arguments:
- CancelMessage object (messageId)
Response object
Each methods returns Response object, that contains:
- Status (bool)
- Message (string)
- MessageId (int)
You can use getters or toArray() method:
Authors
- Michal Wolinski - Haxmedia
License
This project is licensed under the MIT License.
All versions of wbiztool-php with dependencies
guzzlehttp/guzzle Version ^7.0
ext-json Version *
nesbot/carbon Version ^2.0@dev