frankandoak / smooch-api
Smooch API Client
Installs: 5 035
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
- firebase/php-jwt: ^3.0
- guzzlehttp/guzzle: 6.1.1
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-01 21:38:53 UTC
README
Smooch API Client
A library to handle Smooch REST API methods conform to current spec
Installation
Use composer to manage your dependencies and download Smooch API Client:
composer require frankandoak/smooch-api
Usage
$message = new Smooch\Model\Message([ 'text' => 'MESSAGE_CONTENT', 'role' => 'appMaker' ]); $smoochClient = new Smooch\Client(); $smoochClient->setCredentials('SECRET', 'KEY_ID'); $smoochClient ->getAppUser('USER_ID_OR_SMOOCH_ID') ->conversation ->add($message);