node-red-contrib-opentext
Version:
node-red-contrib-opentext - An Opentext Core client
93 lines (71 loc) • 2.48 kB
HTML
<!--
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/html" data-help-name="upload">
<p>An Opentext Core Signature and Capture upload node which uploads a Base64 encoded file or downloads a file from an url to Core server and gives the url as output.</p>
<h2 id="inputs">Inputs</h2>
<p>Any message to trigger producing an Core Signature email.</p>
<h4 id="container">Container</h4>
<p>The name of the container that will receive the message coreSignatureSignRequest object.</p>
<p><code>p.s. msg.payload.coreSignatureSignRequest object</code></p>
<h4 id="grant-type">Authorisation from otdsauth</h4>
<ul><li><strong>msg.payload.access_token</strong></li></ul>
<ul><li><code>- Set by msg.ot2authRequest -</code></li></ul>
<h4 id="grant-type">Variables</h4>
<p><strong>Base64 encoded file:</strong></p>
<pre><code>
file_name
file_content
</code></pre>
<p><strong>input:</strong> </p>
<p><code>Mail settings</code></p>
<pre><code>
msg.coreSignatureUploadRequest = {
"base_url": "https://sign.core.opentext.eu",
"file": {
"file_name": "file-name.pdf",
"file_content": <base64 encoded file>,
}
};
return msg;
</code></pre>
<p><strong>file from url:</strong></p>
<pre><code>
file_name
file_content
file_url
</code></pre>
<p><strong>input:</strong> </p>
<p><code>Mail settings</code></p>
<pre><code>
msg.coreSignatureUploadRequest = {
"base_url": "https://sign.core.opentext.eu",
"file": {
"file_url" "<url to file>",
}
};
return msg;
</code></pre>
<ul><li><strong>Example data coming from the previous node</strong></li></ul>
<p><strong>input:</strong> </p>
<p><code>Mail settings</code></p>
<pre><code>
msg.coreSignatureUploadRequest = {
"base_url": "https://sign.core.opentext.eu",
"file": {
"file_name": msg.filename,
"file_content": msg.file_content,
}
};
return msg;
</code></pre>
</script>