class Uploadcare::Client::RestGroupClient

@see uploadcare.com/api-refs/rest-api/v0.5.0/#tag/Group/paths/~1groups~1%3Cuuid%3E~1storage~1/put

Public Instance Methods

list(**options) click to toggle source

return paginated list of groups @see uploadcare.com/api-refs/rest-api/v0.5.0/#operation/groupsList

# File lib/uploadcare/client/rest_group_client.rb, line 17
def list(**options)
  query = options.empty? ? '' : '?' + URI.encode_www_form(options)
  get(uri: "/groups/#{query}")
end
store(uuid) click to toggle source

store all files in a group @see uploadcare.com/api-refs/rest-api/v0.5.0/#tag/Group/paths/~1groups~1%3Cuuid%3E~1storage~1/put

# File lib/uploadcare/client/rest_group_client.rb, line 11
def store(uuid)
  put(uri: "/groups/#{uuid}/storage/")
end