7.10.0 • Published 3 years ago

d2l-content-service-node-http-client v7.10.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

d2l-content-service-node-http-client

Node-based HTTP client, compatible with d2l-content-service-api-client.

Usage

const ContentServiceNodeHttpClient = require('d2l-content-service-node-http-client');
const ContentServiceApiClient = require('d2l-content-service-api-client');

const httpClient = new ContentServiceNodeHttpClient({
	serviceUrl: 'http://content-service.endpoint',
	tokenGetter: () => { return 'token'; }
	secret: 'secret',
	roles: ['System'],
	expiry: 120
});

const client = new ContentServiceApiClient({ httpClient });

Parameters

  • serviceUrl: Content Service endpoint
  • secret: Content Service token secret
  • roles: Content Service token roles
  • expiry: Content Service token expiry, in seconds
  • tokenGetter: Optional override function for getting a bearer token to be used in requests. If not set, generates tokens using secret, roles, and expiry parameters. If this is set, those parameters are ignored.
7.8.0

3 years ago

7.9.1

3 years ago

7.9.0

3 years ago

7.10.0

3 years ago

7.4.0

3 years ago

7.3.1

3 years ago

7.0.4

3 years ago

7.3.0

3 years ago

7.2.1

3 years ago

7.0.3

3 years ago

7.2.0

3 years ago

7.0.2

3 years ago

7.1.0

3 years ago

7.0.1

3 years ago

7.7.0

3 years ago

7.6.1

3 years ago

7.6.0

3 years ago

7.0.6

3 years ago

7.5.0

3 years ago

7.0.5

3 years ago

6.1.25

3 years ago

6.1.24

3 years ago

6.1.23

3 years ago

6.1.22

3 years ago

6.1.21

3 years ago

6.1.20

3 years ago

6.1.19

3 years ago