View Source Tw.V1_1.SearchResult (Tw v0.1.1)
Struct for search result from GET /search/tweets.json. https://developer.twitter.com/en/docs/twitter-api/v1/tweets/search/api-reference/get-search-tweets
Link to this section Summary
Link to this section Types
Specs
t() :: %Tw.V1_1.SearchResult{ search_metadata: Tw.V1_1.SearchMetadata.t(), statuses: [Tw.V1_1.Tweet.t()] }
Link to this section Functions
Specs
Decode JSON-decoded map into t/0
Specs
next_params(t()) :: Tw.V1_1.Tweet.search_params()
Returns the next search params from a search result.
{:ok, res} = Tw.V1_1.Tweet.search(client, %{q: "twitter"})
next_params = Tw.V1_1.SearchResult.next_params(res)
{:ok, next_res} = Tw.V1_1.Tweet.search(client, next_params)