A Google Apps Script app to integrate RingCentral data into Google spreadsheets, such as syncing RingCentral call log into a spreadsheet.
We build this project based on Google Apps Script Tool clasp and TypeScript
Create a free RingCentral app in RingCentral Developers website to get app client id and secret. Add permission ReadAccount
and ReadCallLog
into your RingCentral app.
Clone this project and install dependences
$ git clone https://github.com/embbnux/ringcentral-data-for-google-sheets.git
$ cd ringcentral-data-for-google-sheets
$ yarn
Create app_credentials.ts
file in project root path:
$ touch app_credentials.ts
Add following code into app_credentials.ts
file:
const RC_APP = {
CLIENT_ID: 'your_ringcentral_app_client_id',
CLIENT_SECRET: 'your_ringcentral_app_client_secret',
SERVER: 'https://platform.ringcentral.com', // 'https://platform.devtest.ringcentral.com' for Sandbox Environment
};
$ ./node_modules/.bin/clasp login # Login with your Google Apps Script account
$ ./node_modules/.bin/clasp create
Create script project by open a google sheet, and create Google Script project by "Tool -> Script Editor" https://developers.google.com/apps-script/guides/bound
You will be redirect to script editor with URI: https://script.google.com/home/projects/your_google_script_project_id/edit
Copy Google Script project id in the URI. Then create '.clasp.json' file in this project root path at your computer.
{"scriptId":"your_google_script_project_id"}
yarn watch
Notice: Before we test, we need to add following redirect URI into your RingCentral app in RingCentral Developer website:
https://script.google.com/macros/d/{SCRIPT ID}/usercallback
For legacy editor:
- Go to Google Apps Script
- Open your project with legacy editor
- In menu, "Run -> Test as add-on -> Select a sheet file"
- Click
Test
to open the sheet file - You can get "RingCentral Data for Google Sheet" at
Add-ons
menu
For new script editor:
- Go to Google Apps Script
- open your project with new editor
- In menu, "Deploy -> Test deployments -> Install"
- Got to your bind script, refresh the page
- You will get a
RingCentral
in top menu
- Sync SMS, Voicemail and Fax data
- Sync RingCentral Video/Meetings data
- Upgrade RingCentral app into production
- Publish into add-on marketplace
- Support to select call log fields for injecting