/// <summary> /// Search for slideshows /// </summary> /// <param name="query">Query string to use in search</param> /// <param name="page">OPTIONAL: The page number of the results (works in conjunction with itemsPerPage), default is 1</param> /// <param name="itemsPerPage">OPTIONAL: Number of results to return per page, default is 12</param> /// <param name="language">OPTIONAL: Language of slideshows (default is English, 'en')('**':All,'es':Spanish,'pt':Portuguese,'fr':French,'it':Italian,'nl':Dutch,'de':German,'zh':Chinese,'ja':Japanese,'ko':Korean,'ro':Romanian,'!!':Other) </param> /// <param name="sortOrder">OPTIONAL: Sort order (default is 'relevance')</param> /// <returns></returns> public string SlideshowSearch(string query, int page, int itemsPerPage, string language, SortOrder sortOrder) { var parameters = GetParameterBase(); parameters.Add("q", query); if (page != 0) { parameters.Add("page", page); } if (itemsPerPage != 0) { parameters.Add("items_per_page", itemsPerPage); } if (!string.IsNullOrEmpty(language)) { parameters.Add("lang", language); } parameters.Add("sort", sortOrder); return(GetCommand.Execute("http://www.slideshare.net/api/2/search_slideshows", parameters)); }
/// <summary> /// Get slideshow /// </summary> /// <param name="slideshowUrl">URL of the slideshow</param> public string GetSlideshow(string slideshowUrl) { var parameters = GetParameterBase(); parameters.Add("slideshow_url", slideshowUrl); return(GetCommand.Execute("http://www.slideshare.net/api/2/get_slideshow", parameters)); }
/// <summary> /// Get all contacts of a particular user /// </summary> /// <param name="usernameFor">Username of user whose contacts are being requested</param> /// <returns></returns> public string GetUserContacts(string usernameFor) { var parameters = this.GetParameterBase(); parameters.Add("username_for", usernameFor); return(GetCommand.Execute("http://www.slideshare.net/api/2/get_user_contacts", parameters)); }
/// <summary> /// Search for slideshows /// </summary> /// <param name="query">Query string to use in search</param> public string SlideshowSearch(string query) { var parameters = GetParameterBase(); parameters.Add("q", query); return(GetCommand.Execute("http://www.slideshare.net/api/2/search_slideshows", parameters)); }
/// <summary> /// Get all user tags /// </summary> /// <param name="username">Username of the requesting user</param> /// <param name="password">Password of the requesting user</param> /// <returns></returns> public string GetUserTags(string username, string password) { var parameters = this.GetParameterBase(); parameters.Add("username", username); parameters.Add("password", password); return(GetCommand.Execute("http://www.slideshare.net/api/2/get_user_tags", parameters)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }