Sha256: 59a9044c3d592eae1400877257cebb3cc618f47bc575af680ce3e045aa32d960

Contents?: true

Size: 460 Bytes

Versions: 10

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

module Crowdin
  module ApiResources
    module Vendors
      # -- For Enterprise mode only --

      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
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
crowdin-api-1.12.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.10.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.9.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.8.1 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.8.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.7.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.6.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.5.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.4.0 lib/crowdin-api/api_resources/vendors.rb
crowdin-api-1.3.0 lib/crowdin-api/api_resources/vendors.rb