1.1.3 • Published 1 year ago

@rc-ex/discovery v1.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

Discovery Extension

Entry Point Discovery.

Install

yarn add @rc-ex/discovery

Usage

import RingCentral from '@rc-ex/core';
import DiscoveryExtension from '@rc-ex/discovery';

const rc = new RingCentral();
// install Discovery Extension
const discoveryExtension = new DiscoveryExtension({
    discoveryServer: process.env.RINGCENTRAL_DISCOVERY_SERVER!,
    brandId: '1210',
});
rc.installExtension(discoveryExtension);
await discoveryExtension.discover(); // discover entry points

console.log(discoveryExtension.initialEntryPoints)

// Then you don't have to manually configure the platform API server

With @ringcentral/sdk

const rc = new RingCentral();

// install Discovery Extension
const discoveryExtension = new DiscoveryExtension({
    discoveryServer: process.env.RINGCENTRAL_DISCOVERY_SERVER!,
    brandId: '1210',
});
rc.installExtension(discoveryExtension);
await discoveryExtension.discover(); // discover entry points

// install RingCentral Extension
const sdk = new SDK({
    clientId: process.env.RINGCENTRAL_CLIENT_ID!,
    clientSecret: process.env.RINGCENTRAL_CLIENT_SECRET!,
    server: discoveryExtension.initialEntryPoints!.coreApi.baseUri, // use the discovered entry point
});
await sdk.login({
    username: process.env.RINGCENTRAL_USERNAME!,
    extension: process.env.RINGCENTRAL_EXTENSION!,
    password: process.env.RINGCENTRAL_PASSWORD!,
});
const ringCentralExtension = new RingCentralExtension(sdk);
await rc.installExtension(ringCentralExtension);

const extInfo = await rc.restapi().account().extension().get();
1.1.3

1 year ago

1.1.1

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.1.0

2 years ago

1.0.10

2 years ago

1.0.5-alpha.0

2 years ago

1.0.4-alpha.0

2 years ago

1.0.0-alpha.1

2 years ago

1.0.0-alpha.0

2 years ago

1.0.2-alpha.0

2 years ago

1.0.1-alpha.0

2 years ago

1.0.3-alpha.0

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.27

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.23

3 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago