Comments (6)
Hi, just create the Tweet widget with our library by passing the JSON response from the API. You don't need to save it to a file.
TweetView.fromTweet(
Tweet.fromRawJson(
res.body // the JSON from Twitter API
);
from tweet_ui.
Ya got it, Thanks :)
I am having one more problem
The tweet I'm using to get the data is not showing the images and also not the entire text (Tweet)
TWEET URL: https://twitter.com/tehseenp/status/1281493907436498946
from tweet_ui.
Try to set the tweet_mode
to extended
.
Future twitterRequest = _twitterOauth.getTwitterRequest(
// Http Method
"GET",
// Endpoint you are trying to reach
"statuses/user_timeline.json",
// The options for the request
options: {
"user_id": "19025957",
"screen_name": "TTCnotices",
"count": "20",
"trim_user": "true",
"tweet_mode": "extended", // Used to prevent truncating tweets
},
);
If this does not help paste the Jason's that you get :-)
from tweet_ui.
It worked :)
Thank you :)
Closing the issue.
from tweet_ui.
Nice ;) If you would like to contribute, you could write a wiki page on how to get your first tweet using the twitter_api
library :)
from tweet_ui.
I'll do that for sure :)
from tweet_ui.
Related Issues (20)
- type 'Null' is not a subtype of type 'double' HOT 15
- Autoplay videos HOT 2
- The data field is an array, but only one TweetView is generated HOT 1
- Should be fixed deprecated method
- Cached images
- Add support for videos in V2 api
- Update photo_view dependency to 0.14.0 HOT 3
- Duplicate classes when compiling HOT 9
- Incompatible with Flutter v2.5.0 HOT 3
- How to create the json file
- Running the example HOT 3
- How to generate the json file HOT 1
- Displaying a list of tweets using JSON HOT 14
- Support Twitter v2 API
- Enable more platforms HOT 2
- Update dependencies HOT 1
- Support for twitter payload V2. HOT 10
- Can't display a single tweet HOT 8
- Tweet with video doesn't show the video HOT 9
- Add the option to show the 'reply_count' on a tweet widget. HOT 1
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 tweet_ui.