예제 #1
0
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 public static TwitterResponse<TwitterTrendDictionary> Weekly(TrendsOptions options)
 {
     return Weekly(null, options);
 }
예제 #2
0
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 public static TwitterResponse <TwitterTrendDictionary> Weekly(TrendsOptions options)
 {
     return(Weekly(null, options));
 }
예제 #3
0
        /// <summary>
        /// Gets the weekly global trends
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="options">The options.</param>
        public static TwitterResponse<TwitterTrendDictionary> Weekly(OAuthTokens tokens, TrendsOptions options)
        {
            Commands.WeeklyTrendsCommand command = new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options);

            return Core.CommandPerformer.PerformAction(command);
        }
예제 #4
0
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Weekly(TrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendDictionary>> function)
 {
     return AsyncUtility.ExecuteAsyncMethod(null, options, timeout, TwitterTrend.Weekly, function);
 }
예제 #5
0
        /// <summary>
        /// Gets the weekly global trends
        /// </summary>
        /// <param name="tokens">The request tokens.</param>
        /// <param name="options">The options.</param>
        public static TwitterResponse <TwitterTrendDictionary> Weekly(OAuthTokens tokens, TrendsOptions options)
        {
            Commands.WeeklyTrendsCommand command = new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options);

            return(Core.CommandPerformer.PerformAction(command));
        }
예제 #6
0
 /// <summary>
 /// Gets the daily global trends
 /// </summary>
 /// <param name="tokens">The request tokens.</param>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Daily(OAuthTokens tokens, TrendsOptions options, TimeSpan timeout, Action<TwitterAsyncResponse<TwitterTrendDictionary>> function)
 {
     return AsyncUtility.ExecuteAsyncMethod(tokens, options, timeout, TwitterTrend.Daily, function);
 }
예제 #7
0
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 public static async Task<TwitterResponse<TwitterTrendDictionary>> WeeklyAsync(OAuthTokens tokens = null, TrendsOptions options = null)
 {
     return await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options));
 }        
예제 #8
0
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="tokens">The request tokens. Leave null for unauthenticated request.</param>
 /// <param name="options">The options. Leave null for defaults.</param>
 public static async Task <TwitterResponse <TwitterTrendDictionary> > WeeklyAsync(OAuthTokens tokens = null, TrendsOptions options = null)
 {
     return(await Core.CommandPerformer.PerformAction(new Twitterizer.Commands.WeeklyTrendsCommand(tokens, options)));
 }
 /// <summary>
 /// Gets the weekly global trends
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Weekly(TrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendDictionary> > function)
 {
     return(AsyncUtility.ExecuteAsyncMethod(null, options, timeout, TwitterTrend.Weekly, function));
 }
예제 #10
0
 /// <summary>
 /// Gets the daily global trends
 /// </summary>
 /// <param name="tokens">The request tokens.</param>
 /// <param name="options">The options.</param>
 /// <param name="timeout">The timeout.</param>
 /// <param name="function">The function.</param>
 /// <returns></returns>
 public static IAsyncResult Daily(OAuthTokens tokens, TrendsOptions options, TimeSpan timeout, Action <TwitterAsyncResponse <TwitterTrendDictionary> > function)
 {
     return(AsyncUtility.ExecuteAsyncMethod(tokens, options, timeout, TwitterTrend.Daily, function));
 }