Skip to content

gkatechis/smooch-api-quickstart-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smooch API Examples

Get started

For a detailed guide, see the Smooch API Quickstart and our API QuickStart video tutorial:

VIMEO

Node.js

  1. Clone the repository
  2. Go to the nodejs subdirectory
  3. Update index.js to include your secret key and key ID from your Smooch settings
  4. Install dependencies (npm install)
  5. Run the server (node index)
  6. Use ngrok to create a secure tunnel to port 8000(ngrok http 8000 after ngrok is installed on your PC)
  7. Create a Facebook page and connect it to Smooch
  8. Create a Webhook from your dashboard and point it at the full url for the /messages endpoint (e.g. https://MY-NGROK-DOMAIN.ngrok.io/messages )
  9. Send messages to your Facebook page and watch the auto-replies roll in

Python

  1. Clone the repository
  2. Go to the python subdirectory
  3. Update main.py to include your secret key and key ID from your Smooch settings
  4. Install dependencies (pip install -r requirements.txt)
  5. Run the server (FLASK_APP=main.py flask run)
  6. Use ngrok to create a secure tunnel to port 5000(ngrok http 5000 after ngrok is installed on your PC)
  7. Create a Facebook page and connect it to Smooch
  8. Create a Webhook from your dashboard and point it at the full url for the /messages endpoint (e.g. https://MY-NGROK-DOMAIN.ngrok.io/messages )
  9. Send messages to your Facebook page and watch the auto-replies roll in

About

Sample code to get started with the Smooch REST APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%