with Dropbox Sign (HelloSign) and Verifone?
Send a signature request with Dropbox Sign. See the documentation
Send a signature request from a template with Dropbox Sign. See the documentation
The Dropbox Sign (formerly HelloSign) API enables seamless integration of electronic signature workflows into any application or service. On Pipedream, you can harness this API to automate signature requests, track document status, and streamline document management processes. By combining Dropbox Sign with Pipedream's capabilities, you can create powerful automations that save time, reduce errors, and maintain a high level of professional engagement in document signing experiences.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hellosign: {
type: "app",
app: "hellosign",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hellosign.com/v3/account`,
headers: {
Authorization: `Bearer ${this.hellosign.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform";
import dayjs from "dayjs";
import crypto from "crypto";
export default defineComponent({
props: {
verifone: {
type: "app",
app: "verifone",
}
},
async run({steps, $}) {
let requestDateTime = new Date();
requestDateTime = dayjs(requestDateTime).format("YYYY-MM-DD hh:mm:ss");
const algo = "sha256";
let hash = this.verifone.$auth.vendor_code.length
+ this.verifone.$auth.vendor_code
+ requestDateTime.toString().length
+ requestDateTime;
hash = crypto.createHmac(algo, this.verifone.$auth.secret_key)
.update(hash)
.digest('hex');
return await axios($, {
url: `https://api.2checkout.com/rest/6.0/products/`,
headers: {
"X-Avangate-Authentication": `code="${this.verifone.$auth.vendor_code}" date="${requestDateTime}" hash="${hash}" algo="${algo}"`,
Accept: "application/json"
},
})
},
})