Comments (1)
@tobiasgrossmann The Twitter V2 API does not support arrays out of the box - you would need to join the array into a CSV string yourself, first.
// API expects a CSV string
{ tweet: { fields: 'attachments,created_at,lang,text', }, media: { fields: 'preview_image_url,type,url' } }
// Array.join() works too
{ tweet: { fields: ['attachments', 'created_at', 'lang,text'].join(), }, media: { fields: ['preview_image_url', 'type', 'url'].join() }
See this repl for an example: https://replit.com/@brandongscott/twitter-v289
Not to spam my own library here, but I have built some functions on top of this one to ease consumer use. It provides TypeScript definitions as well as automatic Array
-> string
conversion for these request parameters. https://github.com/brandongregoryscott/ts-twitter-provider#getting-started
from twitter-v2.
Related Issues (20)
- OAuth2 Application-based?
- [BUG] Twitter deep links don't linking to the intended page
- TypeError: url_1.URL is not a constructor HOT 1
- error code 410 error description unauthorized
- Error on adding multiple query parameters separated by space, in urlParams HOT 2
- Provide support for filtered streams HOT 3
- Filtered stream disconnected every 5 minutes HOT 3
- More streaming examples HOT 3
- User fields not returning any data HOT 2
- Lost in Documentation, how to get all tweets by user? HOT 1
- Export types/interfaces/etc from central index.ts file for consumer usage
- Sample codes for client.post(path, body, urlParams); HOT 2
- Unauthorized(401) when using tweets/search/recent HOT 8
- Iteration through paginated data HOT 2
- Handle .errors[] in streams
- Can't resolve 'crypto' in '/project/node_modules/twitter-v2/build' HOT 2
- Unauthorized when POST to Tweets endpoint HOT 8
- This doesn't work. Twitter API gives you 5 values. You only have variables for 4 of them. Get 'unauthorized' when trying to use values you suggest. HOT 1
- I can't reply to a specific tweet
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-v2.