2020.1
Table Of Contents
- What is Connect Send?
- Installation
- Printer driver
- Workflow Plugins
- Connect Send database cleanup service
- Moving Workflow to another machine
- Prerequisites
- System Requirements
- Installing OL Connect Send Printer Driver
- Printer driver properties and advanced settings
- Mass deployment of the OL Connect Send Printer Driver
- Using API Keys
- OLCS Notifier
- Known Issues
- License modes
- OL Connect Send in Workflow
- Using the Printer Driver
- Log files
- Troubleshooting
Retrieving the API key from the HTTP headers can be done with a Run Script task. For
example:
// Get Bearer Key from raw header
var rawHeaders = Watch.ExpandString("xmlget('/request[1]/header
[1]/rawheaders[1]',Value,KeepCase,NoTrim)");
var authHeaderPattern = /^Authorization=Bearer (\S+)$/m;
var matchResult = rawHeaders.match(authHeaderPattern);
if (matchResult != null && matchResult.length == 2) {
Watch.SetVariable ('bearer_key', matchResult[1]);
Watch.SetVariable ('key_found', 'yes');
} else {
Watch.SetVariable ('bearer_key', '');
Watch.SetVariable ('key_found', 'no');
}
Watch.log('*'+Watch.GetVariable('bearer_key').length+'*', 2);
A following Text Condition task can check if the API key was found (here: the %{key_found}
variable is equal to yes).
Page 59