Skip to content

Commit

Permalink
added api call for get_slideshows_by_user
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Crabtree committed Mar 14, 2009
1 parent 740138b commit 2314770
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/slide_share/slideshows.rb
Expand Up @@ -61,6 +61,18 @@ def find(id, options = {})
base.send :get, "/get_slideshow", options.merge(:slideshow_id => id)
end

# Returns hash representing the user requests and an array of their slideshows
# Takes the following options.
#
# * <tt>:username</tt> - Slideshare username of the user
# * <tt>:password</tt> - SlideShare password of the user _making_ the request
# * <tt>:detailed</tt> - Set to <tt>true</tt> to return additional, detailed information
def find_all_by_user(user, options = {})
detailed = convert_to_number(options.delete(:detailed))
options[:detailed] = detailed unless detailed.nil?
base.send :get, "/get_slideshows_by_user", options.merge(:username_for => user)
end

# Returns true if successful or raises an appropriate exception if not.
# Takes the following options:
#
Expand Down

0 comments on commit 2314770

Please sign in to comment.