7.10.0 • Published 2 years ago

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

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

d2l-content-service-browser-http-client

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

Usage

import ContentServiceBrowserHttpClient from 'd2l-content-service-browser-http-client';
import ContentServiceApiClient = require('d2l-content-service-api-client');

const httpClient = new ContentServiceBrowserHttpClient({
    serviceUrl: 'http://content-service.endpoint',
    tokenGetter: () => { return 'token'; },
    framed: true
});

const client = new ContentServiceApiClient({ httpClient });

Parameters

  • serviceUrl: Content Service endpoint
  • tokenGetter: Optional override function for getting a bearer token to be used in requests. If not set, uses d2l-fetch-auth.
  • framed: Set to true when the client is used in a FRA, and false when in a web component embedded directly in LE. If tokenGetter is set, this is ignored. Default is false.
7.8.0

2 years ago

7.9.1

2 years ago

7.9.0

2 years ago

7.10.0

2 years ago

7.4.0

2 years ago

7.3.1

2 years ago

7.0.4

2 years ago

7.3.0

2 years ago

7.2.1

2 years ago

7.0.3

2 years ago

7.2.0

2 years ago

7.0.2

2 years ago

7.1.0

2 years ago

7.0.1

2 years ago

7.7.0

2 years ago

7.6.1

2 years ago

7.6.0

2 years ago

7.0.6

2 years ago

7.5.0

2 years ago

7.0.5

2 years ago

6.1.25

2 years ago

6.1.24

2 years ago

6.1.23

2 years ago

6.1.22

2 years ago

6.1.21

2 years ago

6.1.20

2 years ago

6.1.19

2 years ago