Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are Twitter's lists endpoints missing? #1063

Closed
AniaBerthelot opened this issue Sep 5, 2020 · 10 comments
Closed

Are Twitter's lists endpoints missing? #1063

AniaBerthelot opened this issue Sep 5, 2020 · 10 comments

Comments

@AniaBerthelot
Copy link

How to get twitter's lists timeline, I browsed Tweetinvi's documentation and nowhere it's mentioned. Thanks!

@linvi linvi self-assigned this Sep 13, 2020
@linvi linvi added the question label Sep 13, 2020
@linvi
Copy link
Owner

linvi commented Sep 13, 2020

Hello there.

Twitter Lists are supported by Tweetinvi 4.0 and 5.0.
You can find the latest documentation here:

https://linvi.github.io/tweetinvi/dist/twitter-api/lists.html

Cheers,
Linvi

@linvi linvi closed this as completed Sep 13, 2020
@AniaBerthelot
Copy link
Author

AniaBerthelot commented Sep 15, 2020

Hello @linvi and thanks for the reply,
Actually It's good what we can do with lists here (CRUD) but I just want to get Lists TIMELINE and it's not documented. Is it integrated or should I do it manually with a direct call?

Cheers,

@linvi
Copy link
Owner

linvi commented Sep 15, 2020

Hello,

I do not understand which functionality you are talking about.
Tweetinvi exposes all the Timelines and Lists features of the Twitter API v1.1.

Thanks to your message, I realised that the Timeline documentation is missing for Tweetinvi 5.0 and I will work on it tonight.
In the meantime you just need to use intellisense to discover the methods available for the Timeline by typing:

var client = new TwitterClient(creds);
client.Timelines.

You can also find all the Timelines interface here: https://github.com/linvi/tweetinvi/blob/master/src/Tweetinvi.Core/Public/Client/Clients/ITimelinesClient.cs

Cheers,
Linvi

@linvi
Copy link
Owner

linvi commented Sep 15, 2020

Hi there,

I have added the documentation to access the Twitter timelines.
You can find the documentation here:

https://linvi.github.io/tweetinvi/dist/twitter-api/timelines.html

Cheers,
Linvi

@AniaBerthelot
Copy link
Author

Hi @linvi,
Thank you for your investment in time and energy.
I was talking about this endpoint https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-statuses

@AniaBerthelot
Copy link
Author

Hi @linvi,
Thank you for your investment in time and energy.
I was talking about this endpoint https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-statuses

It is implemented ( GetTweetsFromListAsync( ) ), but not visible in documentation. I was thinking that features presented in documentation are all the available ones in the package. Now I got it, I'm exploring methods from IDE.

@linvi
Copy link
Owner

linvi commented Sep 19, 2020

Thanks for sharing, I will add this into the doc :)

@linvi linvi added this to the Version 5.0 milestone Sep 19, 2020
@linvi linvi reopened this Sep 19, 2020
@AniaBerthelot
Copy link
Author

AniaBerthelot commented Sep 27, 2020

Hi @linvi,
I'd like to use since_id param with my GetTweetsFromListIterator(long listId) so I'm forced to use the version that accepts parms :
ITwitterIterator<ITweet, long?> GetTweetsFromListIterator(IGetTweetsFromListParameters parameters);
But I'm really strugeling to use IGetTweetsFromListParameters as I have to implement all parents interfaces properties plus the constructor...

Is there a better way to inject since_id? Thks champion

@linvi
Copy link
Owner

linvi commented Sep 28, 2020

I thought it was obvious for me that the implemented parameters were already available without the I prefix.
I will think about this to improve the doc. Here you go:

var tweets = await client.Lists.GetTweetsFromListAsync(new GetTweetsFromListParameters(153)
{
    SinceId = 42
});

@AniaBerthelot
Copy link
Author

Hi, thanks a lot for the quick answer.
Actually now it is, it's obvious. I was confused by nested Interfaces and some fields was read only that was the case for sinceID. Now everything's ok thanks to you.

@linvi linvi closed this as completed Nov 15, 2020
linvi added a commit that referenced this issue Nov 15, 2020
@waterboy550 waterboy550 mentioned this issue Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants