Comments (4)
I am currently writing myself a little tweet app and also will need media upload. I might provide the relevant code.
Not sure if it should be part of this lightweight lib though. Could be sort of a plugin/extension like:
import { fileUpload, urlUpload } from "twitter-lite-media"
const client = new Twitter(...)
// Upload a file
const uploadedMedia = await fileUpload(client, file, "image/gif")
// Upload from an URL
const uploadedUrlMedia = await urlUpload(client, "https://s3.amazon.com/9823423deadbead...")
What you think?
from twitter-lite.
Hi @fdebijl! Thanks for bringing up this issue. We don't currently support a postMediaChunked
method in the same way that Twit does, however we do support POST endpoints.
We'll flag this as a new feature and we can try and get to it in the near future. In the meantime, though, PRs are welcome!! If you or someone else wants to contribute this, we can totally work with you to get support for chunked media uploads added.
from twitter-lite.
Relevant issue in twit that could be of use: ttezel/twit#496.
from twitter-lite.
Hey @pke,
Adding uploading media would be a great idea! We can keep the entry / exits separate when bundling 😄
Do you mind opening up a PR and we'll glady review
from twitter-lite.
Related Issues (20)
- URL Card Doesn't Appear
- API v2 documentation
- Rate limit handling could be more explicit
- Cannot like a tweet with v2 HOT 3
- TypeScript does not like `new Twitter({ bearer_token })` HOT 1
- How do i tweet to someone who just followed me?
- twitter-lite client stream method always defaults to api version 1.1 HOT 3
- POST to the Cards endpoint fails HOT 1
- Two ways to access data? HOT 1
- Only allow code to post tweets from the account defined in the "follow" parameter.
- Stops Posting Tweets After a Certain Time HOT 1
- How to post link text / images HOT 3
- OAuth 2 error for POST /2/tweets FIXED HOT 15
- Media from Tweet lookup
- Twitter Bookmarks API Endpoint HOT 1
- Tweet on behalf of other users?
- Does `twitter-lite` report the current status of rate limits, in order to get the count of the API requests remaining in the current time-window? HOT 1
- Upcoming API changes
- ReferenceError: Property 'Buffer' doesn't exist
- Could not authenticate you
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-lite.