public SocialQueryString GetQueryString() { SocialQueryString qs = new SocialQueryString(); if (Count > 0) { qs.Add("count", Count); } if (MaxTimestamp != null) { qs.Add("max_timestamp", SocialUtils.GetUnixTimeFromDateTime(MaxTimestamp.Value)); } if (MinTimestamp != null) { qs.Add("min_timestamp", SocialUtils.GetUnixTimeFromDateTime(MinTimestamp.Value)); } if (MinId != null) { qs.Add("min_id", MinId); } if (MaxId != null) { qs.Add("max_id", MaxId); } return(qs); }
public SocialQueryString GetQueryString() { SocialQueryString qs = new SocialQueryString(); qs.Add("q", Query); if (Count > 0) { qs.Add("count", Count); } return(qs); }
public SocialQueryString GetQueryString() { SocialQueryString qs = new SocialQueryString(); qs.Add("lat", Latitude); qs.Add("lng", Longitude); if (Distance > 0) { qs.Add("distance", Distance); } return(qs); }
public SocialQueryString GetQueryString() { SocialQueryString qs = new SocialQueryString(); if (Count > 0) { qs.Add("count", Count); } if (!String.IsNullOrWhiteSpace(MinTagId)) { qs.Add("min_tag_id", MinTagId); } if (!String.IsNullOrWhiteSpace(MaxTagId)) { qs.Add("max_tag_id", MaxTagId); } return(qs); }
public SocialQueryString GetQueryString() { SocialQueryString query = new SocialQueryString(); if (Count > 0) { query.Add("count", Count); } if (MinId != null) { query.Add("min_id", MinId); } if (MaxId != null) { query.Add("max_id", MaxId); } return(query); }
/// <summary> /// Search for tags by name. Results are ordered first as an exact match, then by popularity. Short tags will be treated as exact matches. /// </summary> /// <param name="tag">A valid tag name without a leading #. (eg. snowy, nofilter)</param> public SocialHttpResponse Search(string tag) { // Declare the query string SocialQueryString qs = new SocialQueryString(); qs.Add("q", tag); // Perform the call to the API return(Client.DoAuthenticatedGetRequest("https://api.instagram.com/v1/tags/search/", qs)); }
/// <summary> /// Gets debug information about the specified access token. /// </summary> /// <param name="accessToken">The access token to debug.</param> /// <returns>The raw JSON response from the API.</returns> public SocialHttpResponse DebugToken(string accessToken) { // Declare the query string SocialQueryString query = new SocialQueryString(); query.Add("input_token", accessToken); // Make the call to the API return(Client.DoAuthenticatedGetRequest("/debug_token", query)); }
public SocialQueryString GetQueryString() { // Declare the query string SocialQueryString qs = new SocialQueryString(); qs.Add("lat", Latitude); qs.Add("lng", Longitude); // Optinal options if (Distance > 0) { qs.Add("distance", Distance); } if (MinTimestamp > 0) { qs.Add("min_timestamp", MinTimestamp); } if (MaxTimestamp > 0) { qs.Add("max_timestamp", MaxTimestamp); } return(qs); }