1.0.4 • Published 6 years ago
textmaster v1.0.4
Textmaster API for Node
This Node.js module provides access to the Textmaster API for ordering translations.
Installation
Install via npm
npm install textmaster --save
Initialize Textmaster with your public and private keys. If querying the Textmaster sandbox, set sandbox
to true.
var textmaster = require('textmaster')(publicKey, privateKey);
Endpoints
- All callbacks are passed an error and response:
callback(err, res)
. - Supports camelCase and underscore naming conventions (Textmaster uses the underscore convention).
- Please refer to Textmaster's API Docs for endpoint details.
textmaster.account
textmaster.account.info(callback);
textmaster.project
textmaster.project.create(projectObject, callback);
textmaster.project.get.single({ projectId: projectId}, callback);
textmaster.project.get.list(callback);
textmaster.project.update({projectId: projectId}, projectObject, callback);
textmaster.project.asyncLaunch({ projectId: projectId}, callback);
textmaster.document
textmaster.document.complete.single({ id: id, projectId: projectId}, { satisfaction: satisfaction, message: message }, callback);
textmaster.document.complete.batch({ projectId: projectId}, { documents: [docId, docId2], satisfaction: satisfaction, message: message}, callback);
textmaster.document.create.single({projectId: projectId}, documentObject, callback);
textmaster.document.create.batch({projectId: projectId}}, { documents: [docOBject, docObject2]}, callback);
textmaster.document.delete({id: id, projectId: projectId }, callback);
textmaster.document.get.single({id: id, projectId: projectId }, callback);
textmaster.document.get.batch({projectId: projectId }, callback);
textmaster.document.get.filter({projectId: projectId, page: page}, filterObject,callback);
textmaster.document.update({projectId: projectId, id: id}, documentObject, callback); // must pass data
textmaster.service
textmaster.service.languages(callback);
textmaster.service.locales(callback);
textmaster.service.quote(projectData, callback);
textmaster.service.pricing({locale: locale}, callback);
Contribute
Forks and pull requests welcome!
TODO
- Add tests
Author
Localize. For support, email support@localizejs.com.
1.0.4
6 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
8 years ago
0.1.33
9 years ago
0.1.31
9 years ago
0.1.30
9 years ago
0.1.25
10 years ago
0.1.24
10 years ago
0.1.23
10 years ago
0.1.22
10 years ago
0.1.21
10 years ago
0.1.20
10 years ago
0.1.19
10 years ago
0.1.18
10 years ago
0.1.17
10 years ago
0.1.16
10 years ago
0.1.14
10 years ago
0.1.13
10 years ago
0.1.12
10 years ago
0.1.11
10 years ago
0.1.10
10 years ago