Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use the API as an authenticated user, first a session must be generated. More about how to authenticate and use translate5  API at: REST API

API

...

call for filesystem import:

URL:(YOUR_TRANSLATE5_DOMAIN)/editor/plugins_termimport_termimport/filesystem
Available Methods:GET
Specialities:Start the files-system based term import for the files with location defined in the importDir parameter from the filesystem.config
Availability:It is avalable only for admins (users with system role "admin")


Example of the config file for the file acrossapi-based import. This file is located under "config" folder inside the TermImport plugin.

Code Block
crossAPIurl=http://win.translate5.net
crossExportFilesDir=/var/www/translate5/data/import/crossapi/
apiUsername=crossapi.user
apiPassword=pass

;mapping between across export template and term collection
[FileMapping]
template-1.export=exampletermCollection

;mapping between term collection name and customer number
[CollectionMapping]
exampletermCollection3=10001;
exampletermCollection2=10002;
exampletermCollection=123456789;


API call for crossapi import:

URL:(YOUR_TRANSLATE5_DOMAIN)/editor/plugins_termimport_termimport/crossapi
Available Methods:GET
Specialities:Start the crossapi-system based term import for the across configuration files with location defined in the crossExportFilesDir parameter from the crossapi.config
Availability:It is avalable only for admins (users with system role "admin")