linkedin-post-share
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"name": "linkedin-post-share", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "A Linkedin Wrapper for Post/Share API. This will help you to post content on linkedin.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -24,4 +24,4 @@ # LinkedIn Post Share | ||
const post = "This is my post content"; | ||
// Blob object representing the image | ||
const image = await fetch("https://example.com/some-image.jpeg").then((response) => response.blob()); ; | ||
// Buffer representing the image | ||
const image = await fetch("https://example.com/some-image.jpeg").then((response) => response.buffer()); ; | ||
const imageAlt = "Alternative text for the image"; | ||
@@ -43,7 +43,7 @@ | ||
- `createPostWithImage(post: string, image: Blob, imageAlt?: string): Promise<boolean>` | ||
- `createPostWithImage(post: string, image: Buffer, imageAlt?: string): Promise<boolean>` | ||
Creates a post on LinkedIn with an image. Returns a Promise that resolves to true if the post was shared successfully, or false otherwise. | ||
- post - The text of the post. | ||
- image - A Blob object representing the image to be shared. | ||
- image - A Buffer. | ||
- imageAlt - Optional alternative text for the image. If not provided, a default value will be used. | ||
@@ -50,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10297