Sha256: 0f66b424c07b1f56ab958b399d496d48f0caac4cb15024adadee68c3c6a57eb3
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
module Voog class API # Voog Assets API methods. # # @see http://www.voog.com/developers/api/resources/assets module Assets # List assets # # @see http://www.voog.com/developers/api/resources/assets#get_assets def assets(params = {}) paginate 'assets', {query: params} end # Get a single asset # # @see http://www.voog.com/developers/api/resources/assets#get_asset def asset(id, params = {}) get "assets/#{id}", {query: params} end # Create an asset # # @see http://www.voog.com/developers/api/resources/assets#create_asset def create_asset(data) post 'assets', data end # Confirm an asset upload # # @see http://www.voog.com/developers/api/resources/assets#confirm_asset def confirm_asset(id) put "assets/#{id}/confirm", nil end # Delete an asset # # @see http://www.voog.com/developers/api/resources/assets#remove_asset def delete_asset(id) delete "assets/#{id}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voog_api-0.0.11 | lib/voog_api/api/assets.rb |