frankandoak/smooch-api

Smooch API Client

Maintainers

Package info

github.com/frankandoak/smooch-api

pkg:composer/frankandoak/smooch-api

Statistics

Installs: 5 037

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

v0.1.0 2016-04-29 20:21 UTC

This package is not auto-updated.

Last update: 2026-03-07 04:13:10 UTC


README

Build Status

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);