PremiumSearchEnvironment

data class PremiumSearchEnvironment(    val client: ApiClient,     val product: SearchProduct,     val label: String) : Endpoint

Collection of api endpoints related to Premium Search API with product and a label.

See also

Parameters

client

Current ApiClient instance.

Constructors

Link copied to clipboard
fun PremiumSearchEnvironment(    client: ApiClient,     product: SearchProduct,     label: String)

Creates new PremiumSearch endpoint instance.

Properties

Link copied to clipboard
open override val client: ApiClient
Link copied to clipboard
val label: String

The label associated with your search developer environment.

Link copied to clipboard
val product: SearchProduct

Select either 30days or fullarchive.

Extensions

Link copied to clipboard
fun PremiumSearchEnvironment.count(    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 PremiumSearchEnvironment.data(    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.