question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add tweet_mode parameter

See original GitHub issue

Is your feature request related to a problem? Please describe.
The statusesUserTimeline (and possibly other endpoints) supports a tweet_mode parameter. Such value can be extended which allows the full text content of the tweet, and it’s hashtags, to be returned in the response.

Describe the solution you’d like
Update the typings to support the extended response structure, as well as adding tweet_mode to the supported args for tweets.statusesUserTimeline function.

Describe alternatives you’ve considered
For the moment, using //@ts-ignore prevents warnings about invalid parameters and response fields.

Additional context
Sample API response: https://gist.github.com/ChronSyn/f215c96aedfd56b2d7085f4b0f1f4b02

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonHoibergcommented, Oct 7, 2020

Added in v. 1.0.3

1reaction
SimonHoibergcommented, Oct 7, 2020

Sorry for the late reply! Let’s look into a more generic approach at a later point. I think how you handled it in the PR is great for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API documentation: tweet_mode parameter - Twitter Developers
Hi all, Apologies if I've missed something here, but I wanted to bring attention to the tweet_mode parameter for the endpoints that retrieve ......
Read more >
r - Cannot pass tweet_mode = 'extended' parameter to API in ...
1 Answer 1 ... In the source code for searchTwitter() there doesn't appear to be a parameter for tweet_mode . ... The search_tweets...
Read more >
Extended Tweets — tweepy 4.12.1 documentation
API method that returns a Status object accepts a new tweet_mode parameter. Valid values for this parameter are compat and extended , which...
Read more >
Extended Tweets — Tweetinvi 5.0.4 documentation
Twitter introduced a TweetMode parameter that is either compat or extended . ... When set to null , Tweetinvi will not add the...
Read more >
Parameter reference | Docs | Twitter Developer Platform
Customize an embedded timeline with data-* attributes added to a fallback anchor element or passed to a JavaScript factory function in an options...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found