GithubHelp home page GithubHelp logo

podium-api-sample-messages's Introduction

Sample Integration: Send Messages

About the Integration

This repository provides a quick solution that will allow messages (SMS or Email) to be send to end users to Podium. The integration uses the send a message You can learn more about the message object by accessing our API reference docs

Get Started

If it is your first time using Podium API, checkout our Get Started Guide to get your credentials and understand our scope.

Running Locally

1. Get your developer account

In order to make https requests make sure you have a developer account and the following keys:

  • ClientId
  • ClientSecret
  • RefreshToken

2. Setup local project

<!--Clone this repository-->
git clone https://github.com/podium/podium-api-demo-contacts.git

<!--Go to the repository directory-->
cd ~/podium-api-demo-contacts
 
<!--Create https server with SSL certificate - Podium requires https requests
Create a folder name certs and reference key and certs to the files created in the folder-->
https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/

<!--Install dependencies packages-->
npm install

3. Set environment variables

<!--Create a .env file-->
<!--Set env variables-->
REFRESHTOKEN = '<your-refresh-token>'
CLIENTID = '<your-client-id>'
CLIENTSECRET = '<your-client-secret>'

4. Run Code

node index.js

You can use Postman to make requests to the local server. Below is an example of a message body that can be use to send messages.
Note:
Make sure you know your locationUid and have a valida phone number.

{
     "channel": {
          "identifier": "8001119232",
          "type": "phone"
     },
     "body": "Just a reminder that your appointment is today! - Dynamic Body",
     "locationUid": "b405e23a-2d8e-5000-909c-d1759dd40000"
}

podium-api-sample-messages's People

Contributors

jairoadi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.