Example #1
0
        /// <summary>
        /// Gets all public slideshows posted in a particular group on Slideshare.
        /// To see the groups section, see http://www.slideshare.net/groups
        /// </summary>
        /// <param name="groupname">Name of your group. Ex. If your group URL is http://www.slideshare.net/group/web-wednesday, then group name is web-wednesday, not Web Wednesday</param>
        /// <param name="offset">OPTIONAL: Number of slideshows to skip starting from the beginning</param>
        /// <param name="limit">OPTIONAL: Restrict response to these many slideshows</param>
        public string GetSlideshowsForGroup(string groupname, int offset, int limit)
        {
            var parameters = GetParameterBase();

            parameters.Add("group_name", groupname);

            if (offset != 0)
            {
                parameters.Add("offset", offset);
            }

            if (limit != 0)
            {
                parameters.Add("limit", limit);
            }

            return(GetCommand.Execute("http://www.slideshare.net/api/2/get_slideshows_by_group", parameters));
        }
Example #2
0
        /// <summary>
        /// Get all groups for a particular user
        /// </summary>
        /// <param name="usernameFor">Username of user whose groups are being requested</param>
        /// <param name="username">OPTIONAL: username of the requesting user</param>
        /// <param name="password">OPTIONAL: password of the requesting user</param>
        /// <returns></returns>
        public string GetUserGroups(string usernameFor, string username, string password)
        {
            var parameters = this.GetParameterBase();

            parameters.Add("username_for", usernameFor);

            if (!string.IsNullOrEmpty(username))
            {
                parameters.Add("username", username);
            }

            if (!string.IsNullOrEmpty(password))
            {
                parameters.Add("password", password);
            }

            return(GetCommand.Execute("http://www.slideshare.net/api/2/get_user_groups", parameters));
        }
Example #3
0
        /// <summary>
        /// Gets all public slideshows tagged with a particular tag on Slideshare.
        /// Ex. To see all slideshows tagged as "web", see http://www.slideshare.net/tag/web
        /// </summary>
        /// <param name="tags">The tag to search</param>
        /// <param name="offset">OPTIONAL: Number of slideshows to skip starting from the beginning</param>
        /// <param name="limit">OPTIONAL: Restrict response to these many slideshows</param>
        public string GetSlideshowsForTag(string tags, int offset, int limit)
        {
            var parameters = GetParameterBase();

            parameters.Add("tag", tags);

            if (offset != 0)
            {
                parameters.Add("offset", offset);
            }

            if (limit != 0)
            {
                parameters.Add("limit", limit);
            }

            return(GetCommand.Execute("http://www.slideshare.net/api/2/get_slideshows_by_tag", parameters));
        }
Example #4
0
        /// <summary>
        /// Gets all public slideshows posted for a particular user on Slideshare.
        /// To see a sample user's slideshow collection, see http://www.slideshare.net/jboutelle/slideshows
        /// </summary>
        /// <param name="username">Name of the slideshare user. Ex. If your slidespace URL is http://www.slideshare.net/gauravgupta, then group name is gauravgupta, not Gaurav Gupta</param>
        /// <param name="offset">OPTIONAL: Number of slideshows to skip starting from the beginning</param>
        /// <param name="limit">OPTIONAL: Restrict response to these many slideshows</param>
        public string GetSlideshowsForUser(string username, int offset, int limit)
        {
            var parameters = GetParameterBase();

            parameters.Add("username_for", username);

            if (offset != 0)
            {
                parameters.Add("offset", offset);
            }

            if (limit != 0)
            {
                parameters.Add("limit", limit);
            }

            return(GetCommand.Execute("http://www.slideshare.net/api/2/get_slideshows_by_user", parameters));
        }