lib/cloudapp/client.rb
def bookmark(*args)
      if args[0].is_a? Array
        Drop.create(:bookmarks, args)
      else
        url, name = args[0], (args[1] || "")
        Drop.create(:bookmark, {:name => name, :redirect_url => url})
      end
    end
def bookmark(*args)
      if args[0].is_a? Array
        Drop.create(:bookmarks, args)
      else
        url, name = args[0], (args[1] || "")
        Drop.create(:bookmark, {:name => name, :redirect_url => url})
      end
    end
def bookmark ( * args ) if args [ 0 ] . is_a? Array Drop . create ( :bookmarks , args ) else url , name = args [ 0 ] , ( args [ 1 ] || "" ) Drop . create ( :bookmark , { :name => name , :redirect_url => url } ) end end
Create one or more new bookmark drops.

 Requires authentication.

 @overload bookmark(url, name = "")
   @param [String] url url to bookmark
   @param [String] name name of bookmark
 @overload bookmark(opts)
   @param [Array] opts array of bookmark option parameters (containing +:name+ and +:redirect_url+)
 @return [CloudApp::Drop]
Create one or more new bookmark drops .