7.10.0 • Published 3 years ago
d2l-content-service-browser-http-client v7.10.0
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 endpointtokenGetter: Optional override function for getting a bearer token to be used in requests. If not set, usesd2l-fetch-auth.framed: Set totruewhen the client is used in a FRA, andfalsewhen in a web component embedded directly in LE. IftokenGetteris set, this is ignored. Default isfalse.
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
4 years ago
7.3.0
3 years ago
7.2.1
3 years ago
7.0.3
4 years ago
7.2.0
3 years ago
7.0.2
4 years ago
7.1.0
4 years ago
7.0.1
4 years ago
7.7.0
3 years ago
7.6.1
3 years ago
7.6.0
3 years ago
7.0.6
4 years ago
7.5.0
3 years ago
7.0.5
4 years ago
6.1.25
4 years ago
6.1.24
4 years ago
6.1.23
4 years ago
6.1.22
4 years ago
6.1.21
4 years ago
6.1.20
4 years ago
6.1.19
4 years ago