Sha256: b27100da1a0e991739066f33bfabb207aa4a225a036040aca3b156fa43e28bcc
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 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: { job_type: 'test', priority: 1, retry_max: 10, retry_delay: 300, tasks: [ { task_type: 'echo', label: 'test1', options: { foo: 'bar' }, call_back: 'http://cms.prx.dev/call_back' } ] } } j = client.jobs.create(job)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fixer_client-0.1.0 | examples/basic.rb |