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?
optionalapiVersion?:string
Defined in: src/client.ts:32
LinkedIn-Version, YYYYMM (default DEFAULT_API_VERSION).
author?
optionalauthor?: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?
optionalbaseUrl?:string
Defined in: src/client.ts:34
Default DEFAULT_BASE_URL; another origin for tests.
fetch?
optionalfetch?: (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?
optionalpoll?:PollOptions
Defined in: src/client.ts:40
How long to wait for an uploaded video or document to finish processing.
timeoutMs?
optionaltimeoutMs?:number
Defined in: src/client.ts:36
Timeout per request, in ms (default 120000; 0 or Infinity turn it off).