Skip to main content

Interface: LinkedInClientOptions

Defined in: src/client.ts:23

Properties​

accessToken​

accessToken: AccessTokenSource

Defined in: src/client.ts:25

The member's access token, or a function answering it (called on every request).


apiVersion?​

optional apiVersion?: string

Defined in: src/client.ts:32

LinkedIn-Version, YYYYMM (default DEFAULT_API_VERSION).


author?​

optional author?: string | (() => string | Promise<string>)

Defined in: src/client.ts:30

The member's person URN (urn:li:person:…), the author of every post. When left out it is read once from OpenID Connect userinfo (needs the openid profile scopes).


baseUrl?​

optional baseUrl?: string

Defined in: src/client.ts:34

Default DEFAULT_BASE_URL; another origin for tests.


fetch?​

optional fetch?: (input, init?) => Promise<Response>

Defined in: src/client.ts:38

An alternative fetch (tests, proxy).

Parameters​

input​

string | URL | Request

init?​

RequestInit

Returns​

Promise<Response>


poll?​

optional poll?: PollOptions

Defined in: src/client.ts:40

How long to wait for an uploaded video or document to finish processing.


timeoutMs?​

optional timeoutMs?: number

Defined in: src/client.ts:36

Timeout per request, in ms (default 120000; 0 or Infinity turn it off).