akarizen/bot-sdk

Akarizen Bot API SDK for PHP

Maintainers

Package info

github.com/LinGash/akarizen-php-bot-sdk

pkg:composer/akarizen/bot-sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-02-06 09:15 UTC

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 is https://resources.studioamk.com/botapi/callback.
  • timeoutMs: Request timeout in milliseconds.
  • jwtOptions: Extra JWT payload claims (e.g., exp, nbf, iss).