Web Service API Reference

The ScriptX.Services API controls printing, paper and printer settings, license registration and print job management. An OpenAPI (Swagger) specification is also available here which includes functionality to try out API calls to the MeadCo ScriptX.Services for Cloud server.

Many of the reference pages listed below include example code that runs on the page and allows API calls to be made to
the MeadCo ScriptX.Services for Cloud> server, together with options to run the code against your own installations of
both ScriptX.Services for On-Premise Devices and ScriptX.Services for Windows PC.

Authentication

ScriptX.Services for Cloud and ScriptX.Services for Windows PC require that an authorization header be
included in the HTTP request using Basic authentication with a user name of the subscription/license identifier and
no password. For example:

printDirect/print (POST) - prints string content directly to a printer. This is useful in scenarious such as label printers using the ZPL language and can also be used to print PostScript.

Using ScriptX.Services for Windows PC with API sample code

An installer for the latest version (2.9.2.6) of ScriptX.Services for Windows PC
can be downloaded using this button:

You will need Administrator rights to run the installer. Once installed, ScriptX.Services for Windows PC is available to any browser at any time.
The default URL (as used in the API sample code) for the server is http://127.0.0.1:41191. If a certificate for localhost is
available the server will also be available on https://localhost:41192.

For the sample code on these reference pages to function, an evaluation license must first be installed using the example code
on the licensing (POST) reference page. The evaluation license can be used both for this site and
for your own content delivered from your own localhost server.
There are no specific requirements for your own content server on localhost - it may be IIS,
Apache, Node, IIS Express etc etc.

Please note: unless you are running Chrome 70 or later or Edge 42 or later your browser will
block calls to http:// from web pages delivered via https:// such as this website. In this case you will need to have a certificate for localhost installed so that
the server will be available on https://localhost:41192. You should also change the URL for the sample code accordingly
(entered values will be persisted between pages until the "Reset to default URL values" button is clicked).

For a detailed discussion on installation and configuration of ScriptX.Services for Windows PCplease follow this link.

Also see our samples site for more detailed
usage. An http:// version of the samples site is available here.