Official client library for Upload-Post API - cross-platform social media video upload.
- 🚀 Simple video upload to multiple platforms
- 🔒 Secure API key authentication
- 📁 Supports all major video formats
- 📝 Automatic form data handling
npm install upload-post
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);
new UploadPost(apiKey: string)
upload(videoPath: string, options: UploadOptions): Promise<object>
-
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')
The library throws errors for:
- Missing required parameters
- File not found
- API request failures
- Invalid platform specifications
MIT