PremiumSearch

class PremiumSearch(val client: ApiClient) : Endpoint

Collection of api endpoints related to Premium Search API.

See also

Parameters

client

Current ApiClient instance.

Constructors

Link copied to clipboard
fun PremiumSearch(client: ApiClient)

Creates new PremiumSearch endpoint instance.

Properties

Link copied to clipboard
open override val client: ApiClient

Extensions

Link copied to clipboard
fun PremiumSearch.count(    product: SearchProduct,     label: String,     query: String,     fromDate: LocalDateTime? = null,     toDate: LocalDateTime? = null,     bucket: SearchBucket? = null,     next: String? = null,     vararg options: Option): PremiumSearchJsonObjectApiAction<PremiumSearchCount>

Returns counts data Tweets for the specified query. To learn how to use Twitter Search effectively, please see the Premium search operators page for a list of available filter operators.

Link copied to clipboard
fun PremiumSearch.data(    product: SearchProduct,     label: String,     query: String,     tag: String? = null,     fromDate: LocalDateTime? = null,     toDate: LocalDateTime? = null,     maxResults: Int? = null,     next: String? = null,     vararg options: Option): PremiumSearchJsonObjectApiAction<PremiumSearchData>

Returns a collection of relevant Tweets matching a specified query. To learn how to use Twitter Search effectively, please see the Premium search operators page for a list of available filter operators.

Link copied to clipboard
fun PremiumSearch.environment(product: SearchProduct, label: String): PremiumSearchEnvironment

Returns PremiumSearchEnvironment endpoint instance.