1.0.4 • Published 5 years ago

textmaster v1.0.4

Weekly downloads
700
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

0.1.33

8 years ago

0.1.31

8 years ago

0.1.30

8 years ago

0.1.25

8 years ago

0.1.24

9 years ago

0.1.23

9 years ago

0.1.22

9 years ago

0.1.21

9 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago