Gengo's Human Translation API Client

This is a fairly basic class that maps directly to the documentation found at http://developers.gengo.com.

In addition, there are a few convience functions that extrapolate some of the more complicated yet common tasks when using the Gengo API.

Require module dependencies

http = require 'http'

GengoClient class

Our GengoClient class expects an object containing API keys. In production mode, we'll want to sent sandbox to false.

class GengoClient
  constructor: (keys, @sandbox = true) ->
    {@public_key, @private_key} = keys

  getAccountCurrent: ->
    {credits: "25.32"}

GengoJob class

This class represents a Gengo job payload

class GengoJob
  constructor: (options) ->

Export public methods

This module now exports the 2 classes for public use.

exports.GengoClient = GengoClient
exports.GengoJob = GengoJob
h