daneden / Twift

🐦 An async Swift library for the Twitter v2 API 🚧 WIP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing User/Poll/Geo fields

emin-grbo opened this issue · comments

commented

I have just started fetching some lists, and in this specific example I am trying to fetch tweets from one specific playlist.
The call works, and I do get the tweets, however, to render them I would need the author profile image, which is specified as a field under User.Fields
In the current implementation of this method we can only use Set<Tweet.Field>

This is the method currently on the package:

public func getListTweets(_ listId: List.ID,
                            fields: Set<Tweet.Field>,
                            expansions: [Tweet.Expansions],
                            paginationToken: String? = nil,
                            maxResults: Int = 100

And this is the Twitter API explorer
image