instagram-publisher
Version:
Publish Instagram Images, Image Slideshows, Video Reels & Stories via NodeJS
35 lines (34 loc) • 1.2 kB
TypeScript
import { LinkablePostPublished } from './types';
declare class InstagramPublisher {
constructor({ email, password, verbose, }: {
email: string;
password: string;
verbose?: boolean;
});
createSingleImage({ image_path, caption, location, }: {
image_path: string;
caption: string;
location?: string;
}): Promise<LinkablePostPublished>;
createImageSlideshow({ images, caption, location, }: {
images: string[];
caption: string;
location?: string;
}): Promise<LinkablePostPublished>;
createSingleVideo({ video_path, thumbnail_path, caption, location, }: {
video_path: string;
thumbnail_path: string;
caption: string;
location?: string;
}): Promise<LinkablePostPublished>;
createReel({ video_path, thumbnail_path, caption, location, }: {
video_path: string;
thumbnail_path: string;
caption: string;
location?: string;
}): Promise<LinkablePostPublished>;
createImageStory({ image_path, }: {
image_path: string;
}): Promise<LinkablePostPublished>;
}
export default InstagramPublisher;