ringcentral/ringcentral-js

Change the AppKey and AppSecret to clientId and clientSecret

dibyenduroy opened this issue · 2 comments

Currently, the SDK code shows AppKey and AppSecret but as per the latest changes it should be updated to clientId and clientSecret so that the code works.

Here's the page that needs to be updated:

https://github.com/ringcentral/ringcentral-js/blob/1ca3267452bbf40a7c83907a39efbdd25bb4fc53/sdk/README.md

Code using appKey and appSecret exists 3 times on the page and the terms exist in other places in the prose.

import {SDK} from "@ringcentral/sdk";
// op
const SDK = require('@ringcentral/sdk').SDK;

const rcsdk = new SDK({
    server: SDK.server.sandbox,
    appKey: 'yourAppKey',
    appSecret: 'yourAppSecret',
    redirectUri: '' // optional, but is required for Implicit Grant and Authorization Code OAuth Flows (see below)
});