C# Class BoxKite.Twitter.TrendsExtensions

Show file Open project: nickhodge/BoxKite.Twitter

Public Methods

Method Description
GetTrendsAvailableLocations ( this session ) : Task>

Returns the locations that Twitter has trending topic information for.

ref: https://dev.twitter.com/docs/api/1.1/get/trends/available

GetTrendsByLocation ( this session, double latitude = 0.0, double longitude = 0.0 ) : Task>

Returns the locations that Twitter has trending topic information for, closest to a specified location.

ref: https://dev.twitter.com/docs/api/1.1/get/trends/closest

GetTrendsForPlace ( this session, int placeId = 1, bool exclude = false ) : Task>

Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.

ref: https://dev.twitter.com/docs/api/1.1/get/trends/place

Method Details

GetTrendsAvailableLocations() public static method

Returns the locations that Twitter has trending topic information for.
ref: https://dev.twitter.com/docs/api/1.1/get/trends/available
public static GetTrendsAvailableLocations ( this session ) : Task>
session this
return Task>

GetTrendsByLocation() public static method

Returns the locations that Twitter has trending topic information for, closest to a specified location.
ref: https://dev.twitter.com/docs/api/1.1/get/trends/closest
public static GetTrendsByLocation ( this session, double latitude = 0.0, double longitude = 0.0 ) : Task>
session this
latitude double If provided with a long parameter the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair.
longitude double If provided with a lat parameter the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair.
return Task>

GetTrendsForPlace() public static method

Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.
ref: https://dev.twitter.com/docs/api/1.1/get/trends/place
public static GetTrendsForPlace ( this session, int placeId = 1, bool exclude = false ) : Task>
session this
placeId int 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 bool If true will remove all hashtags from the trends list.
return Task>