API Libraries

Smooch provides official API libraries for Javascript, Ruby, Python and Java. Those helpful libraries wraps calls to the Smooch REST API.

Javascript

Available via npm:

npm install smooch-core --save

Note that smooch-core works for both Node.js and in a web browser environment

Check out the package’s docs for the list of methods. The source for this package is also avaible in the GitHub repo.

Ruby

Available as a gem:

sudo gem install smooch-api

If you use bundler, you can add this line to your Gemfile

gem 'smooch-api', '~> 1.2.0'

Check out the package’s docs for the list of methods. The source for this package is also avaible in the GitHub repo.

Python

Available through pip:

pip install smooch

Check out the package’s docs for the list of methods. The source for this package is also avaible in the GitHub repo.

Java

For Maven, add the following dependency to your project’s POM:

<dependency>
    <groupId>io.smooch</groupId>
    <artifactId>api</artifactId>
    <version>1.2.0</version>
    <scope>compile</scope>
</dependency>

For Gradle, add this dependency to your project’s build file

compile "io.smooch:api:1.2.0"

Check out the package’s docs for the list of methods. The source for this package is also avaible in the GitHub repo.