Skip to content

podium/podium-api-sample-contacts

Repository files navigation

Sample Integration: Contacts Sync

About the Integration

This repository provides a quick solution that will allow contacts to be sync from a source of truth to Podium. The integration uses the create contact and get list contacts endpoint. You can learn more about the contact 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
      >'
    </your-client-secret></your-client-id
  ></your-refresh-token
>

4. Run Code

node index.js

You can use Postman to make requests to the local server.

About

An API request to use our contact endpoints

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published