Giter VIP home page Giter VIP logo

node-gengo's Introduction

Gengo API for Node

This Node.js module provides access to the Gengo API for ordering translations.

Installation

Install via npm

npm install gengo --save

Initialize Gengo with your public and private keys. If querying the Gengo sandbox, set sandbox to true.

var gengo = require('gengo')(publicKey, privateKey, sandbox);

Endpoints

  • All callbacks are passed an error and response: callback(err, res).
  • Supports camelCase and underscore naming conventions (Gengo uses the underscore convention).
  • Please refer to Gengo's API Docs for endpoint details.

gengo.account

gengo.account.stats(callback);

gengo.account.balance(callback);

gengo.account.preferredTranslators(callback);

gengo.job

gengo.job.get(jobId, callback);

gengo.job.update({ id: jobId, action: 'approve' }, callback);

gengo.job.delete(jobId, callback);

gengo.job.feedback(jobId, callback);

gengo.job.revisions.list(jobId, callback);

gengo.job.revisions.get({ id: jobId, revId: revisionId }, callback);

gengo.job.comments.list(jobId, callback);

gengo.job.comments.create({ id: jobId, body: 'Great job!' }, callback);

gengo.jobs

gengo.jobs.create(jobsObject, callback);

gengo.jobs.list({ status: 'approved' }, callback);

gengo.jobs.get([jobId, jobId2, ...], callback);

gengo.order

gengo.order.get(orderId, callback);

gengo.order.delete(orderId, callback);

gengo.glossary

gengo.glossary.list(callback);

gengo.glossary.get(glossaryId, callback);

gengo.service

gengo.service.languagePairs({lc_src: 'en' }, callback);

gengo.service.languages(callback);

gengo.service.quote(jobs, callback);

gengo.service.quoteFiles({ jobs: jobs, files: files }, callback);

Contribute

Forks and pull requests welcome!

TODO

  • gengo.service.quoteFiles isn't working currently
  • Add tests

Author

Supported and maintained by Localize.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.