Skip to content

frankandoak/smooch-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages