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.
http = require 'http'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"}This class represents a Gengo job payload
class GengoJob
constructor: (options) ->This module now exports the 2 classes for public use.
exports.GengoClient = GengoClient
exports.GengoJob = GengoJob