Skip to main content

Interface: LinkedInClient

Defined in: src/client.ts:112

Methods​

author()​

author(options?): Promise<string>

Defined in: src/client.ts:116

The person URN posts are made as.

Parameters​

options?​

CallOptions

Returns​

Promise<string>


createPost()​

createPost(params, options?): Promise<CreatedPost>

Defined in: src/client.ts:118

Publishes a post: text, optionally with images, a video, a document, an article link or a reshare.

Parameters​

params​

CreatePostParams

options?​

CallOptions

Returns​

Promise<CreatedPost>


deletePost()​

deletePost(post, options?): Promise<string>

Defined in: src/client.ts:122

Deletes a post (idempotent); post is a URN or a URL holding one. Answers the URN.

Parameters​

post​

string

options?​

CallOptions

Returns​

Promise<string>


editPost()​

editPost(post, params, options?): Promise<string>

Defined in: src/client.ts:120

Replaces a post's text; post is a URN or a URL holding one. Answers the URN.

Parameters​

post​

string

params​

EditPostParams

options?​

CallOptions

Returns​

Promise<string>


me()​

me(options?): Promise<UserInfo>

Defined in: src/client.ts:114

The signed-in member, from OpenID Connect userinfo.

Parameters​

options?​

CallOptions

Returns​

Promise<UserInfo>


uploadDocument()​

uploadDocument(file, options?): Promise<string>

Defined in: src/client.ts:128

Uploads a document and waits until LinkedIn has processed it; answers its URN.

Parameters​

file​

MediaInput

options?​

CallOptions

Returns​

Promise<string>


uploadImage()​

uploadImage(file, options?): Promise<string>

Defined in: src/client.ts:124

Uploads an image; answers its urn:li:image: URN.

Parameters​

file​

MediaInput

options?​

CallOptions

Returns​

Promise<string>


uploadVideo()​

uploadVideo(file, options?): Promise<string>

Defined in: src/client.ts:126

Uploads a video in 4 MB parts and waits until LinkedIn has processed it; answers its URN.

Parameters​

file​

MediaInput

options?​

CallOptions

Returns​

Promise<string>