Sha256: 25d04d7f42914690430b2451dd45bf4ba58dbd0c32775119fd59b2ac88923838
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
require 'dotenv' Dotenv.load '.env-fixer_client' require 'fixer_client' Fixer.reset! Fixer.configure do |c| c.client_id = ENV['FIXER_CLIENT_ID'] c.client_secret = ENV['FIXER_CLIENT_SECRET'] c.endpoint = 'http://fixer.prx.dev/api/' end client = Fixer::Client.new job = { job: { original: 's3://test-fixer/audio.wav', job_type: 'audio', tasks: [ { task_type: 'transcode', options: { format: 'mp3', bit_rate: 64, sample_rate: 44100 }, result: 's3://test-fixer/audio.mp3' } ] } } j = client.jobs.create(job)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fixer_client-0.1.0 | examples/transcode.rb |