botamp / botamp-php
Botamp PHP Library
Requires
- php: >=5.6
- php-http/client-common: ^1.0
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.0
- php-http/guzzle6-adapter: ^1.1
- php-http/httplug: ^1.0
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- php-http/message: ^1.0
- php-http/mock-client: ^0.3
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~1.0
This package is not auto-updated.
Last update: 2020-11-27 22:35:50 UTC
README
Botamp is an autonomous AI-enabled chat assistant which interacts seamlessly with your customers, keeps them engaged and makes them buy more from you, while you can focus on serving them.
You can sign up for a Botamp account at https://botamp.com.
Requirements
PHP 5.6 and later (previous PHP versions may work but untested), HHVM
Composer
You can install the SDK via Composer. Run the following command:
composer require botamp/botamp-php
To be able to use it, require Composer autoload:
require_once('vendor/autoload.php');
Getting Started
Here goes a simple usage:
$botamp = new Botamp\Client(YOUR_API_KEY); $entities = $botamp->entities->all(); foreach($entities as $entity) { echo $entity['name']; }
Documentation
Please see https://app.botamp.com/docs/api for up-to-date documentation.
Development
Install dependencies:
composer install
Tests
Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:
./vendor/bin/phpunit
Or to run an individual test file:
./vendor/bin/phpunit tests/ClientTest.php