Method: Crowdin::ApiResources::Bundles#check_bundle_export_status

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

#check_bundle_export_status(bundle_id, export_id, project_id = config.project_id) ⇒ Object

Parameters:

  • bundle_id (Integer)

    Bundle ID

  • export_id (String)

    Export ID



58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/crowdin-api/api_resources/bundles.rb', line 58

def check_bundle_export_status(bundle_id, export_id, project_id = config.project_id)
  bundle_id || raise_parameter_is_required_error(:bundle_id)
  export_id || raise_parameter_is_required_error(:export_id)
  project_id || raise_project_id_is_required_error

  request = Web::Request.new(
    connection,
    :get,
    "#{config.target_api_url}/projects/#{project_id}/bundles/#{bundle_id}/exports/#{export_id}"
  )
  Web::SendRequest.new(request).perform
end