Download the PHP package kiwari/kiwari-bot-sdk without Composer
On this page you can find all versions of the php package kiwari/kiwari-bot-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kiwari/kiwari-bot-sdk
More information about kiwari/kiwari-bot-sdk
Files in kiwari/kiwari-bot-sdk
Package kiwari-bot-sdk
Short Description kiwari, kiwari-bot, kiwari-bot-sdk, bot, bot-sdk
License MIT
Informations about the package kiwari-bot-sdk
Kiwari Bot SDK [PHP]
Requirements
- PHP
- Composer
- Kiwari Account for Bot
- ngrok (for running the example)
How to use
Setup
-
Please add this SDK to your Bot PHP usng composer
- Get your
acces_token
of Kiwari Bot Account, you can find in Kiwari Dashboard -
Init Kiwari Bot SDK
-
After you init Kiwari Bot, you can get
message
,chatroom
,sender
, andmyaccount
-
Now you can send the message into the opponent user by call the method that provided like below
-
Send Message Text
- Send Button
More example, please see the test here
- Send Document
If you want to send document message, you need to upload the document or file first by using $bot->upload()
function
-
Send Card
-
Send Carousel
-
Send Custom
- Send Location
Example
You can try example by using this example
Run Webhook Example
-
Run webhook example by executing
-
After you run webhook in the local, you need to bring online using ngrok
-
Now you can access your webhook url online in the internet like below
- Register the url in the Kiwari dashboard
- Now you can chat with your Bot