Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Remove postTranslationJob #6

Merged
merged 4 commits into from about 1 year ago

2 participants

Shawn Smith Andrea Belvedere
Shawn Smith
Owner

No description provided.

Andrea Belvedere hayate merged commit b343609 into from
Andrea Belvedere hayate closed this
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
... ...
@@ -1,22 +0,0 @@
1  
-# encoding: UTF-8
2  
-require 'gengo'
3  
-
4  
-# Post a single job over to Gengo and print out the
5  
-# response JSON.
6  
-
7  
-gengo = Gengo::API.new({
8  
-	:public_key => 'your_public_key',
9  
-	:private_key => 'your_private_key',
10  
-	:sandbox => true,
11  
-})
12  
-
13  
-puts gengo.postTranslationJob({
14  
-	:job => {
15  
-		:type => "text",
16  
-		:slug => "Hallo",
17  
-		:body_src => "Hallo zusammen",
18  
-		:lc_src => "de",
19  
-		:lc_tgt => "en",
20  
-		:tier => "standard"
21  
-	}
22  
-})
4  examples/postTranslationJobComment.rb
@@ -8,6 +8,4 @@
8 8
 })
9 9
 
10 10
 # Posts a comment to job #42.
11  
-puts gengo.postTranslationJob({:id => 42, :comment => {
12  
-	:body => "I love lamp!"
13  
-})
  11
+puts gengo.postTranslationJobComment({:id => 42, :body => "I love lamp!"})
10  lib/gengo-ruby/api_handler.rb
@@ -239,16 +239,6 @@ def getAccountBalance(params = {})
239 239
       self.get_from_gengo('account/balance', params)
240 240
     end
241 241
 
242  
-    # Posts a translation job over to Gengo, returns a response indicating whether the submission was
243  
-    # successful or not. Param list is quite expansive here, pay attention...
244  
-    #
245  
-    # Options:
246  
-    # <tt>job</tt> - A job is a hash of data describing what you want translated. See the examples included for
247  
-    # more information on what this should be. (type/slug/body_src/lc_src/lc_tgt/tier/auto_approve/comment/callback_url/custom_data)
248  
-    def postTranslationJob(params = {})
249  
-      self.send_to_gengo('translate/job', params)
250  
-    end
251  
-
252 242
     # Much like the above, but takes a hash titled "jobs" that is multiple jobs, each with their own unique key.
253 243
     #
254 244
     # Options:
1  spec/gengo_spec.rb
@@ -49,7 +49,6 @@
49 49
         [
50 50
             :getAccountStats,
51 51
             :getAccountBalance,
52  
-            :postTranslationJob,
53 52
             :postTranslationJobs,
54 53
             :updateTranslationJob,
55 54
             :updateTranslationJobs,
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.