Package Exports
- upload-post
- upload-post/index.d.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (upload-post) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 titleoptions.user
: User identifieroptions.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