Sha256: 8ac7f8b8308fd678082996487a631523ae9aaf5623fe9093415388e3653a5dd0

Contents?: true

Size: 426 Bytes

Versions: 14

Compression:

Stored size: 426 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bearcat-1.3.4 lib/bearcat/client/content_migrations.rb
bearcat-1.3.3 lib/bearcat/client/content_migrations.rb
bearcat-1.3.2 lib/bearcat/client/content_migrations.rb
bearcat-1.3.1 lib/bearcat/client/content_migrations.rb
bearcat-1.2.18 lib/bearcat/client/content_migrations.rb
bearcat-1.2.17 lib/bearcat/client/content_migrations.rb
bearcat-1.2.16 lib/bearcat/client/content_migrations.rb
bearcat-1.2.15 lib/bearcat/client/content_migrations.rb
bearcat-1.2.14 lib/bearcat/client/content_migrations.rb
bearcat-1.2.13 lib/bearcat/client/content_migrations.rb
bearcat-1.2.12 lib/bearcat/client/content_migrations.rb
bearcat-1.2.11 lib/bearcat/client/content_migrations.rb
bearcat-1.2.10 lib/bearcat/client/content_migrations.rb
bearcat-1.2.9 lib/bearcat/client/content_migrations.rb