Skip to content

Client side scripting

FellowTraveler edited this page Dec 14, 2011 · 8 revisions

the ot command-line utility (“ot”) has a built-in script interpreter, with access to the entire OT Client API.

Create a text file, and chmod u+x filename in order to run it as an executable.

Put this at the top of the file: #!/usr/local/bin/ot --script

Here are all the OT Client API functions you can call from inside the scripts: OT client API functions

Here are easy step-by-step instructions for using the OT API.

Clone this wiki locally