New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

upload-post

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

upload-post

Official client library for Upload-Post API - cross-platform social media video upload

1.0.1
latest
npm
Version published
Weekly downloads
6
200%
Maintainers
0
Weekly downloads
 
Created
Source

Upload-Post Node.js Client

Official client library for Upload-Post API - cross-platform social media video upload.

Features

  • 🚀 Simple video upload to multiple platforms
  • 🔒 Secure API key authentication
  • 📁 Supports all major video formats
  • 📝 Automatic form data handling

Installation

npm install upload-post

Usage

import { UploadPost } from 'upload-post';

const uploader = new UploadPost('your-api-key-here');

// Upload video with options
const result = await uploader.upload('/path/to/video.mp4', {
  title: 'My Awesome Video',
  user: 'test-user',
  platforms: ['tiktok'] // Currently supported platforms
});

console.log('Upload successful:', result);

API Documentation

Constructor

new UploadPost(apiKey: string)

upload()

upload(videoPath: string, options: UploadOptions): Promise<object>

Options
  • videoPath: Path to video file (MP4, MOV, AVI, etc.)
  • options.title: Video title
  • options.user: User identifier
  • options.platforms: Array of target platforms (currently supports 'tiktok')

Error Handling

The library throws errors for:

  • Missing required parameters
  • File not found
  • API request failures
  • Invalid platform specifications

License

MIT

Keywords

social-media

FAQs

Package last updated on 14 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts