linvi / tweetinvi

Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
MIT License
1.01k stars 219 forks source link

JsonSerializer the GetUserTimelineAsync #1134

Closed jrahma closed 3 years ago

jrahma commented 3 years ago

Hi,

i am new to tweetinvi..

How can I JsonSerializer the content of GetUserTimelineAsync?

Also do you have a sample class of the fields?

Thanks, Jassim

jrahma commented 3 years ago

What i am trying is to put the output of all the tweets of an account e.g. ("Microsoft") inside a ListView like this:

List<MicrosoftTweets> data = JsonSerializer.Deserialize<List<MicrosoftTweets>>(result);
ListViewTweets.ItemsSource = data;
linvi commented 3 years ago

This is documented here: https://linvi.github.io/tweetinvi/dist/twitter-client/json.html

Hope this helps.