Sha256: b8785737345c4b7771366b4373dee174d4375dfc221c0871c1acb3fcf9f6ed59
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "lib", "kooaba.rb") # set the upload key Kooaba.upload_key = <UPLOAD_KEY> # initialize the item item = Kooaba::Item.new( :title => "A lake", :metadata => nil, :image_files => <PATH_TO_IMAGE>, :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.1 | examples/upload.rb |