1.0.4 • Published 5 years ago
gengo v1.0.4
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.
1.0.4
5 years ago
1.0.3
6 years ago
1.0.2
7 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.1.17
8 years ago
0.1.16
8 years ago
0.1.15
8 years ago
0.1.14
9 years ago
0.1.13
9 years ago
0.1.12
9 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
11 years ago
0.1.3
11 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago