Tool
Upload media
The Twitter Upload Media tool allows users to effortlessly upload new media files to Twitter directly through an API interface. It supports precise media categorization to optimize the upload process for specific use cases such as video amplification.
Features
- Supports uploading various media files by specifying file path or URL.
- Enables media categorization with predefined options like 'amplify_video' to tailor media usage.
- Integrates seamlessly with Twitter's official API for reliable media uploads.
- Accepts file inputs from the temporary server directory (/tmp) for streamlined processing.
- Provides clear documentation linking to Twitter's API reference for easy implementation.
Benefits
- Simplifies media upload workflows for developers and social media managers.
- Enhances content distribution by categorizing media for targeted amplification.
- Reduces manual handling with automated uploads via API calls.
- Ensures compatibility with Twitter’s latest media upload standards and protocols.
- Supports efficient content management by allowing predefined media categories.
Description
Upload new media. See the documentation
Parameters
2 parameters
| Name | Type | Description |
|---|---|---|
| filePathrequired | string | Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf). |
| media_category | enum | The category representing the media usage. |