Skip to content

ringcentral-tutorials/call-ringcentral-apis-native-nodejs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

How to authenticate and access RingCentral platform services using Node JS.

RingCentral Platform

RingCentral Platform is a rich RESTful API platform with more than 60 APIs for business communication includes advanced voice calls, chat messaging, SMS/MMS and Fax.

Clone and Setup the project

$ git clone https://github.com/ringcentral-tutorials/call-ringcentral-apis-native-nodejs-demo

$ cd call-ringcentral-apis-native-nodejs-demo

$ npm install --save

$ cp environment/dotenv-sandbox environment/.env-sandbox

$ cp environment/dotenv-production environment/.env-production

Create an app

  • Create an application at RingCentral Developer Portal.
  • Select Server-only (No UI) for the Platform type.
  • Add the ReadAccounts and SMS permissions for the app.
  • Copy the Client id and Client secret and add them to the .env-[environment] file.
RC_CLIENT_ID=
RC_CLIENT_SECRET=
  • Add the account login credentials to the .env-[environment] file.
RC_USERNAME=
RC_PASSWORD=
RC_EXTENSION=

If you don't know how to create a RingCentral app. Click https://developers.ringcentral.com/library/getting-started.html for instructions.

Run the demo

Set ENVIRONMENT=sandbox in the .env file to run in the sandbox environment.

Set ENVIRONMENT=production in the .env file to run in the production environment.

$ node demo.js

RingCentral Developer Portal

To setup a free developer account, click here

About

Authenticate and access RingCentral platform services using Node JS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published