Sha256: a763601db750fd74af83f16f9e105a83551a5bee0344b94ddb8206374da38049
Contents?: true
Size: 961 Bytes
Versions: 10
Compression:
Stored size: 961 Bytes
Contents
# frozen_string_literal: true module Crowdin module ApiResources module Dictionaries def list_dictionaries(query = {}, project_id = config.project_id) project_id || raise_project_id_is_required_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/projects/#{project_id}/dictionaries", { params: query } ) Web::SendRequest.new(request).perform end def edit_dictionary(language_id = nil, query = {}, project_id = config.project_id) language_id || raise_parameter_is_required_error(:language_id) project_id || raise_project_id_is_required_error request = Web::Request.new( connection, :patch, "#{config.target_api_url}/projects/#{project_id}/dictionaries/#{language_id}", { params: query } ) Web::SendRequest.new(request).perform end end end end
Version data entries
10 entries across 10 versions & 1 rubygems