public string Search(string query, TwitterUsersSearchOptions options) { // Declare the query string SocialQueryString qs = new SocialQueryString(); qs.Set("q", query); if (options != null) { qs.Set("page", options.Page, options.Page > 1); qs.Set("count", options.Count, options.Count != 20); qs.Set("include_entities", options.IncludeEntities, options.IncludeEntities != true); } // Make the call to the API return(Client.DoHttpRequestAsString("GET", "https://api.twitter.com/1.1/users/search.json", qs.NameValueCollection)); }
public virtual SocialQueryString GetQueryString() { SocialQueryString query = new SocialQueryString(); if (Limit != null && Limit.Value >= 0) { query.Set("limit", Limit.Value); } if (Before != null) { query.Set("before", Before); } if (After != null) { query.Set("after", After); } return(query); }
public virtual SocialQueryString GetQueryString() { SocialQueryString query = new SocialQueryString(); if (Limit != null && Limit.Value >= 0) { query.Set("limit", Limit.Value); } if (Since > 0) { query.Set("since", Since); } if (Until > 0) { query.Set("until", Until); } return(query); }
public override SocialQueryString GetQueryString() { SocialQueryString query = base.GetQueryString(); if (IncludeSummary) { query.Set("summary", "true"); } return(query); }
public override SocialQueryString GetQueryString() { SocialQueryString query = base.GetQueryString(); if (IncludeSummary) { query.Set("summary", "true"); } // TODO: Implement the "filter" modifier return(query); }
public SocialQueryString GetQuery() { string resultType = ResultType.ToString().ToLower(); SocialQueryString query = new SocialQueryString(); if (!String.IsNullOrWhiteSpace(Query)) { query.Set("q", Query); } if (resultType != "mixed") { query.Set("result_type", resultType); } if (Count > 0) { query.Set("count", Count); } if (Until != null) { query.Set("until", Until.Value.ToString("yyyy-MM-dd")); } if (SinceId > 0) { query.Set("since_id", SinceId); } if (MaxId > 0) { query.Set("max_id", MaxId); } if (!IncludeEntities) { query.Set("include_entities", "false"); } return(query); }