Code Monkey home page Code Monkey logo

Comments (6)

kawa89 avatar kawa89 commented on July 16, 2024

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.

shanu12joshi avatar shanu12joshi commented on July 16, 2024

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
WhatsApp Image 2020-07-10 at 5 48 07 PM (1)
WhatsApp Image 2020-07-10 at 6 42 08 PM

from tweet_ui.

kawa89 avatar kawa89 commented on July 16, 2024

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.

shanu12joshi avatar shanu12joshi commented on July 16, 2024

It worked :)
Thank you :)
Closing the issue.

from tweet_ui.

kawa89 avatar kawa89 commented on July 16, 2024

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.

shanu12joshi avatar shanu12joshi commented on July 16, 2024

I'll do that for sure :)

from tweet_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.