bmw-lac
v1.7.2
Published
Linkedin client
Downloads
5
Maintainers
Readme
Linkedin API Client
Node.js client for Linkedin API
Install
npm i bmw-lac
Usage
import { LinkedinClient } from 'bmw-tac';
const linkedinClient = new LinkedinClient({
bearerToken: '<YOUR-LINKEDIN-BEARER-TOKEN>',
xRestliProtocolVersion: '2.0.0',
linkedinVersion: '2.0.0',
});
See all available methods here.
Configuration
You can configure the caching behavior upon instantiation of the client:
const linkedinClient = new LinkedinClient({
bearerToken: '<YOUR-LINKEDIN-BEARER-TOKEN>',
xRestliProtocolVersion: '2.0.0',
linkedinVersion: '2.0.0',
ttl: 120, // seconds. Defaults to 360
disableCache: true, // Disables the caching behavior. Defaults to 'false'
maxByteSize: 32000000, // Maximum (approximated) memory size for cache store. Defaults to 16000000.
});