trait TwitterTrendClient extends AnyRef
Implements the available requests for the trends
resource.
- Source
- TwitterTrendClient.scala
- Alphabetic
- By Inheritance
- TwitterTrendClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
val
restClient: RestClient
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
closestLocationTrends(latitude: Double, longitude: Double): Future[RatedData[Seq[Location]]]
Returns the locations that Twitter has trending topic information for, closest to a specified location.
Returns the locations that Twitter has trending topic information for, closest to a specified location. The response is an array of “locations” that encode the location’s WOEID and some other human-readable information such as a canonical name and country the location belongs in. A WOEID is a Yahoo! Where On Earth ID. For more information see https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest.
- latitude
: If provided with a
longitude
parameter the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair. The valid ranges for longitude is -180.0 to +180.0 (West is negative, East is positive) inclusive.- longitude
: If provided with a
latitude
parameter the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair. The valid ranges for longitude is -180.0 to +180.0 (West is negative, East is positive) inclusive.- returns
: The sequence of locations that Twitter has trending topic information for.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
globalTrends(exclude_hashtags: Boolean = false): Future[RatedData[Seq[LocationTrends]]]
Returns the top 10 global trending topics.
Returns the top 10 global trending topics. The response is an array of “trend” objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL. This information is cached for 5 minutes. Requesting more frequently than that will not return any more data, and will count against your rate limit usage. For more information see https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place.
- exclude_hashtags
: By default it is
false
. Setting this totrue
will remove all hashtags from the trends list.- returns
: The representation of the location trends.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
locationTrends(): Future[RatedData[Seq[Location]]]
Returns the locations that Twitter has trending topic information for.
Returns the locations that Twitter has trending topic information for. The response is an array of “locations” that encode the location’s WOEID and some other human-readable information such as a canonical name and country the location belongs in. A WOEID is a Yahoo! Where On Earth ID. For more information see https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-available.
- returns
: The sequence of locations that Twitter has trending topic information for.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trends(woeid: Long, exclude_hashtags: Boolean = false): Future[RatedData[Seq[LocationTrends]]]
Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.
Returns the top 10 trending topics for a specific WOEID, if trending information is available for it. The response is an array of “trend” objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL. This information is cached for 5 minutes. Requesting more frequently than that will not return any more data, and will count against your rate limit usage. For more information see https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place.
- woeid
: The Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.
- exclude_hashtags
: By default it is
false
. Setting this totrue
will remove all hashtags from the trends list.- returns
: The representation of the location trends.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )