Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 331 Bytes
service :web_translate_it do |data, payload|
begin
wti_url = URI.parse("https://webtranslateit.com/api/projects/#{data['api_key']}/refresh_files")
Net::HTTP.post_form(wti_url, :payload => JSON.generate(payload))
rescue Net::HTTPBadResponse
raise GitHub::ServiceConfigurationError, "Invalid configuration"
end
end