module Bearcat
  class Client < Footrest::Client
    module ContentMigrations

      def upload_content_package(api_path, file_path, params = {})
        response = post(api_path, params)
        pre_attachment = response['pre_attachment']
        confirmation_url = post_file(pre_attachment['upload_url'], pre_attachment['upload_params'], file_path)
        confirm_file_upload(confirmation_url)
      end

    end
  end
end