Qryptal provides innovative & effective mobile enabled products and solutions to large enterprises and small businesses.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Qryptal API offers robust solutions for generating and validating secure document QR codes that can be integrated seamlessly into documents for authenticity verification. This is particularly crucial in sectors like education, finance, and government, where document integrity is paramount. Using Pipedream, the API can be connected to a variety of other services to create complete automation workflows, enhancing processes like document management, compliance tracking, and secure exchanges.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qryptal: {
type: "app",
app: "qryptal",
}
},
async run({steps, $}) {
const data = {
"data": {
"City/Town": "Utopia City",
"District": "Central District",
"Name": "John Doe",
"Demographics": {
"Sex": "Male",
"DOB": "May 9 1996",
"City": "Utopia City"
}
},
"format":{
"version":"2",
"fields":[
{
"Photocard":{
"type":"4T1P",
"kvals":[
["Name"],
["Demographics", "Sex"],
["Demographics", "DOB"],
["Demographics", "City"]
],
"dict": {
"file_type":"png",
"file_field":"img1"
}
}
},
{
"City":{
"type":"t2",
"kval":[
"City/Town"
]
}
},
{
"District":{
"type":"t2",
"kval":[
"District"
]
}
}
]
},
"scheme": "C02-EDC-S-B64PNG"
}
return await axios($, {
method: "post",
url: `${this.qryptal.$auth.host}:${this.qryptal.$auth.port}/v2/Vqodes/`,
headers: {
"Authorization": `Token ${this.qryptal.$auth.token}`,
},
data,
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})