lib/softcover/client.rb in softcover-0.9.10 vs lib/softcover/client.rb in softcover-0.9.11
- old
+ new
@@ -63,12 +63,15 @@
def destroy_book_by_slug(slug)
delete path_for(:books, slug)
end
- # ============ Screencasts ===========
- def get_screencast_upload_params(files)
- JSON post path_for(:books, book.id, :screencasts), files: files
+ # ============ Media ===========
+ def get_media_upload_params(path, files, manifest=nil)
+ JSON post path_for(:books, book.id, :media),
+ path: path,
+ files: files,
+ manifest: manifest
# TODO: handle errors
end
# ============ Utils ===========
private
\ No newline at end of file