with Qryptal and Beehiiv?
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,
})
},
})
The Beehiiv API lets you seamlessly manage your email newsletter platform, enabling tasks such as subscriber management, campaign analytics, and content automation. With Beehiiv on Pipedream, you can connect your newsletter operations with other apps and services, automate routine tasks, and enhance your email marketing workflows with real-time data processing and event-driven triggers.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beehiiv: {
type: "app",
app: "beehiiv",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.beehiiv.com/v2/publications`,
headers: {
Authorization: `Bearer ${this.beehiiv.$auth.api_key}`,
},
})
},
})