class Fastlane::Helper::PoeditorExportHelper
Constants
- API_URL
- EXPORT_ACTION
Public Class Methods
export_for_language(params)
click to toggle source
# File lib/fastlane/plugin/poeditor_export/helper/poeditor_export_helper.rb, line 7 def self.export_for_language(params) uri = URI(API_URL) export_params = { api_token: params[:api_token], action: EXPORT_ACTION, id: params[:project_id], type: params[:export_format], language: params[:language], } unless params[:tag].nil? export_params["tags"] = params[:tag] end res = Net::HTTP.post_form(uri, export_params) json = JSON.parse(res.body) URI(json["item"]) end