Sha256: 961a30e9bda36903ae08cd12687f622936ca2f7fcc21e77e711e2f8e752e88b3
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "lib", "kooaba.rb") # set the data key Kooaba.data_key = <data-key-secret-token> # initialize the item item = Kooaba::Item.new( :title => "A lake", :metadata => nil, :image_files => <path-to-image-on-local-filesystem>, :referenceId => "lake" ) # select the bucket you want to put the item into bucket_id = <BUCKET_ID> # upload the item response = Kooaba.upload(item, bucket_id) puts "Response code: #{response.code}" puts "Response body: #{response.body}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.3 | examples/upload.rb |
kooaba-0.0.2 | examples/upload.rb |