1.2.0 • Published 5 months ago
@microfox/twitter v1.2.0
Microfox X SDK
A lightweight, type-safe SDK for interacting with the X (Twitter) API v2
Installation
npm install @microfox/twitterEnvironment Variables
The following environment variables are used by this SDK:
X_API_KEY: Your X API key. (Required)X_API_SECRET: Your X API secret key. (Required)X_ACCESS_TOKEN: Your X access token. (Required)X_ACCESS_SECRET: Your X access token secret. (Required)
Additional Information
Use the createXSDK constructor to create a new X client.
The SDK supports both v2 API endpoints for tweets and users.
Media uploads are supported through the v1.1 API endpoint.
API Reference
For detailed documentation on the constructor and all available functions, see: