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;
 }
 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();
     query.Set("id", Id);
     if (TrimUser) query.Add("trim_user", "true");
     if (IncludeMyRetweet) query.Add("include_my_retweet", "true");
     if (IncludeEntities) query.Add("include_entities", "true");
     return query;
 }
 public SocialQueryString GetQueryString() {
     SocialQueryString query = new SocialQueryString();
     if (Part != null) query.Add("part", Part.ToString());
     if (Ids != null && Ids.Length > 0) query.Add("id", String.Join(",", Ids));
     if (MaxResults > 0) query.Add("maxResults", MaxResults);
     if (!String.IsNullOrWhiteSpace(PageToken)) query.Add("pageToken", PageToken);
     return query;
 }
 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() {

            // 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;

        }
        public SocialQueryString GetQueryString() {

            // Define the query string
            SocialQueryString qs = new SocialQueryString();

            // Add optional parameters
            if (SinceId > 0) qs.Add("since_id", SinceId);
            if (Count > 0) qs.Add("count", Count);
            if (MaxId > 0) qs.Add("max_id", MaxId);
            if (TrimUser) qs.Add("trim_user", "true");
            if (ExcludeReplies) qs.Add("exclude_replies", "true");
            if (ContributorDetails) qs.Add("contributor_details", "true");
            if (!IncludeRetweets) qs.Add("include_rts", "false");

            return qs;

        }
        /// <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() {
     SocialQueryString qs = new SocialQueryString();
     if (Count > 0) qs.Add("count", Count);
     if (MaxLikeId != null) qs.Add("max_like_id", MaxLikeId);
     return qs;
 }
 public SocialQueryString GetQueryString() {
     SocialQueryString qs = new SocialQueryString();
     if (Count > 0) qs.Add("count", Count);
     return qs;
 }
 public SocialQueryString GetQueryString() {
     SocialQueryString query = new SocialQueryString();
     if (StartIndex > 0) query.Add("start-index", StartIndex);
     if (MaxResults > 0) query.Add("max-results", MaxResults);
     return query;
 }
        /// <summary>
        /// Favorites the status message with the specified <code>statusId</code> as the authenticating user.
        /// </summary>
        /// <param name="statusId">The ID of the status message.</param>
        /// <see>
        ///     <cref>https://dev.twitter.com/rest/reference/post/favorites/create</cref>
        /// </see>
        public SocialHttpResponse Create(long statusId) {

            // Declare the query string
            SocialQueryString query = new SocialQueryString();
            query.Add("id", statusId);

            // Make the call to the API
            return Client.DoHttpGetRequest("https://api.twitter.com/1.1/favorites/create.json", query);

        }
 public SocialQueryString GetQueryString() {
     SocialQueryString qs = new SocialQueryString();
     if (Page > 0) qs.Add("page", Page);
     if (PageLength > 0) qs.Add("pagelen", PageLength);
     return qs;
 }
 public SocialQueryString GetQueryString() {
     SocialQueryString query = new SocialQueryString();
     if (!String.IsNullOrWhiteSpace(ProfileId)) query.Add("ids", (ProfileId.StartsWith("ga:") ? ProfileId : "ga:" + ProfileId));
     query.Add("metrics", Metrics == null ? "" : Metrics.ToString());
     if (Dimensions != null && Dimensions.Count > 0) query.Add("dimensions", Dimensions == null ? "" : Dimensions.ToString());
     if (Filters.HasBlocks) query.Add("filters", Filters.ToString());
     if (Sorting.HasFields) query.Add("sort", Sorting.ToString());
     if (MaxResults > 0 && MaxResults != 1000) query.Add("max-results", MaxResults + "");
     return query;
 }
 public SocialQueryString GetQueryString() {
     SocialQueryString query = new SocialQueryString();
     if (!String.IsNullOrWhiteSpace(ProfileId)) query.Add("ids", (ProfileId.StartsWith("ga:") ? ProfileId : "ga:" + ProfileId));
     query.Add("start-date", StartDate.ToString("yyyy-MM-dd"));
     query.Add("end-date", EndDate.ToString("yyyy-MM-dd"));
     query.Add("metrics", Metrics == null ? "" : Metrics.ToString());
     if (Dimensions != null && Dimensions.Count > 0) query.Add("dimensions", Dimensions.ToString());
     if (Filters.HasBlocks) query.Add("filters", Filters.ToString());
     if (Sorting.HasFields) query.Add("sort", Sorting.ToString());
     if (StartIndex > 0) query.Add("start-index", StartIndex);
     if (MaxResults > 0) query.Add("max-results", MaxResults);
     return query;
 }