/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="tokens">The request tokens.</param> /// <param name="WoeID">The WOEID.</param> /// <param name="options">The options.</param> /// <returns> /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects. /// </returns> public static TwitterResponse<TwitterTrendCollection> Trends(OAuthTokens tokens, int WoeID, LocalTrendsOptions options) { Commands.TrendsCommand command = new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options); return Core.CommandPerformer.PerformAction(command); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="WoeID">The WOEID.</param> /// <param name="options">The options.</param> /// <returns> /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects. /// </returns> public static TwitterResponse <TwitterTrendCollection> Trends(int WoeID, LocalTrendsOptions options) { return(Trends(null, WoeID, options)); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="WoeID">The WOEID.</param> /// <param name="options">The options.</param> /// <returns> /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects. /// </returns> public static TwitterResponse<TwitterTrendCollection> Trends(int WoeID, LocalTrendsOptions options) { return Trends(null, WoeID, options); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="tokens">The request tokens.</param> /// <param name="WoeID">The WOEID.</param> /// <param name="options">The options.</param> /// <returns> /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects. /// </returns> public static TwitterResponse <TwitterTrendCollection> Trends(OAuthTokens tokens, int WoeID, LocalTrendsOptions options) { Commands.TrendsCommand command = new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options); return(Core.CommandPerformer.PerformAction(command)); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="tokens">The request tokens.</param> /// <param name="woeId">The WOEID.</param> /// <param name="options">The options.</param> /// <param name="timeout">The timeout.</param> /// <param name="function">The function.</param> /// <returns></returns> public static IAsyncResult Trends(OAuthTokens tokens, int woeId, LocalTrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendCollection>> function) { return AsyncUtility.ExecuteAsyncMethod(tokens, woeId, options, timeout, TwitterTrend.Trends, function); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param> /// <param name="WoeID">The WOEID.</param> /// <param name="options">The options. Leave null for defaults.</param> /// <returns> /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects. /// </returns> public static async Task<TwitterResponse<TwitterTrendCollection>> TrendsAsync(int WoeID, OAuthTokens tokens = null, LocalTrendsOptions options = null) { return await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options)); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param> /// <param name="WoeID">The WOEID.</param> /// <param name="options">The options. Leave null for defaults.</param> /// <returns> /// A collection of <see cref="Twitterizer.TwitterTrend"/> objects. /// </returns> public static async Task <TwitterResponse <TwitterTrendCollection> > TrendsAsync(int WoeID, OAuthTokens tokens = null, LocalTrendsOptions options = null) { return(await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.TrendsCommand(tokens, WoeID, options))); }
/// <summary> /// Gets the trends with the specified WOEID. /// </summary> /// <param name="tokens">The request tokens.</param> /// <param name="woeId">The WOEID.</param> /// <param name="options">The options.</param> /// <param name="timeout">The timeout.</param> /// <param name="function">The function.</param> /// <returns></returns> public static IAsyncResult Trends(OAuthTokens tokens, int woeId, LocalTrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendCollection> > function) { return(AsyncUtility.ExecuteAsyncMethod(tokens, woeId, options, timeout, TwitterTrend.Trends, function)); }