Sha256: f2d695759c777ab589f1e40efa4374f1c63dcaa9f2db80a58ee14005403d0f63

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

module Voog
  class API
    module MediaSets

      # List media_sets
      def media_sets(params = {})
        paginate 'media_sets', {query: params}
      end

      # Get a single media_set
      def media_set(id, params = {})
        get "media_sets/#{id}", {query: params}
      end

      # Create a media_set
      def create_media_set(data)
        post 'media_sets', data
      end

      # Update a media_set
      def update_media_set(id, data)
        put "media_sets/#{id}", data
      end

      # Delete a media_set
      def delete_media_set(id)
        delete "media_sets/#{id}"
      end

      # Add assets to media_set
      def media_set_add_assets(media_set_id, data)
        post "media_sets/#{media_set_id}/add_assets", data
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voog_api-0.0.10 lib/voog_api/api/media_sets.rb