Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove postTranslationJob #6

Merged
merged 4 commits into from

2 participants

Shawn Smith Andrea Belvedere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
22 examples/postTranslationJob.rb
View
@@ -1,22 +0,0 @@
-# encoding: UTF-8
-require 'gengo'
-
-# Post a single job over to Gengo and print out the
-# response JSON.
-
-gengo = Gengo::API.new({
- :public_key => 'your_public_key',
- :private_key => 'your_private_key',
- :sandbox => true,
-})
-
-puts gengo.postTranslationJob({
- :job => {
- :type => "text",
- :slug => "Hallo",
- :body_src => "Hallo zusammen",
- :lc_src => "de",
- :lc_tgt => "en",
- :tier => "standard"
- }
-})
4 examples/postTranslationJobComment.rb
View
@@ -8,6 +8,4 @@
})
# Posts a comment to job #42.
-puts gengo.postTranslationJob({:id => 42, :comment => {
- :body => "I love lamp!"
-})
+puts gengo.postTranslationJobComment({:id => 42, :body => "I love lamp!"})
10 lib/gengo-ruby/api_handler.rb
View
@@ -239,16 +239,6 @@ def getAccountBalance(params = {})
self.get_from_gengo('account/balance', params)
end
- # Posts a translation job over to Gengo, returns a response indicating whether the submission was
- # successful or not. Param list is quite expansive here, pay attention...
- #
- # Options:
- # <tt>job</tt> - A job is a hash of data describing what you want translated. See the examples included for
- # more information on what this should be. (type/slug/body_src/lc_src/lc_tgt/tier/auto_approve/comment/callback_url/custom_data)
- def postTranslationJob(params = {})
- self.send_to_gengo('translate/job', params)
- end
-
# Much like the above, but takes a hash titled "jobs" that is multiple jobs, each with their own unique key.
#
# Options:
1  spec/gengo_spec.rb
View
@@ -49,7 +49,6 @@
[
:getAccountStats,
:getAccountBalance,
- :postTranslationJob,
:postTranslationJobs,
:updateTranslationJob,
:updateTranslationJobs,
Something went wrong with that request. Please try again.