akarizen / bot-sdk
Akarizen Bot API SDK for PHP
dev-master
2026-02-06 09:15 UTC
Requires
- php: >=8.1
- firebase/php-jwt: ^6.10
This package is not auto-updated.
Last update: 2026-04-18 08:26:48 UTC
README
A small PHP SDK for the AMK Bot API.
Install
composer require akarizen/bot-sdk
Usage
<?php use Akarizen\BotSdk\AkarizenClient; $client = new AkarizenClient([ 'apiKey' => 'YOUR_API_KEY', 'businessId' => 'BUSINESS_ID', 'botId' => 'BOT_ID' ]); $reply = $client->sendMessage([ 'userId' => 'user-123', 'message' => 'Hello', 'displayName' => 'Jane' ]); $list = $client->listMessages([ 'userId' => 'user-123', 'current' => 1, 'limit' => 10 ]); $refreshed = $client->refreshConversation([ 'userId' => 'user-123', 'conversationId' => 42 ]);
Options
baseUrl: Override the API base URL. Default ishttps://resources.studioamk.com/botapi/callback.timeoutMs: Request timeout in milliseconds.jwtOptions: Extra JWT payload claims (e.g.,exp,nbf,iss).