Module: Crowdin::ApiResources::Vendors

Defined in:
lib/crowdin-api/api_resources/vendors.rb

Instance Method Summary collapse

Instance Method Details

#list_vendors(query = {}) ⇒ Object

– For Enterprise mode only –



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/crowdin-api/api_resources/vendors.rb', line 8

def list_vendors(query = {})
  enterprise_mode? || raise_only_for_enterprise_mode_error

  request = Web::Request.new(
    connection,
    :get,
    "#{config.target_api_url}/vendors",
    { params: query }
  )
  Web::SendRequest.new(request).perform
end