Sha256: 4453264f772be16a86aa7ed391bbeb949e9f19f7629e0d54c0cf16aac3183232
Contents?: true
Size: 391 Bytes
Versions: 19
Compression:
Stored size: 391 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.expand_path('../../lib', __FILE__)) %w{embedly embedly/command_line json optparse ostruct}.each {|l| require l} api = Embedly::CommandLine.run!(:objectify, ARGV) begin data = api.flatten.collect { |o| o.marshal_dump } puts JSON.pretty_generate(data) rescue Embedly::BadResponseException => e puts "#{e.response.code} :: #{e.response.message}" end
Version data entries
19 entries across 19 versions & 2 rubygems