with SignRequest and Unleashed Software?
With the SignRequest API on Pipedream, you can automate sending documents for signatures, monitor the status of sent documents, and streamline the e-signature process within your own applications or workflows. This facilitates swift and secure digital signatures, allowing you to integrate SignRequest with other services for enhanced document management and notification systems.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
signrequest: {
type: "app",
app: "signrequest",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://signrequest.com/api/v1/team-members/`,
headers: {
Authorization: `Bearer ${this.signrequest.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform";
import crypto from "crypto";
export default defineComponent({
props: {
unleashed_software: {
type: "app",
app: "unleashed_software",
}
},
async run({ steps, $ }) {
const baseUrl = "https://api.unleashedsoftware.com";
const resource = "Accounts";
// The queryString is used in calculating signature, add your query string parameters
// e.g. for the Customers resource customerCode=FRANCK&includeObsolete=true
// or just pass an empty string
const queryString = "";
const uri = `${baseUrl}/${resource}${queryString ? `?${queryString}` : ""}`
// Generate HMAC-SHA256 signature
const signature = crypto
.createHmac("sha256", this.unleashed_software.$auth.api_key)
.update(queryString)
.digest("base64")
// Make the request
return await axios($, {
method: "GET",
url: uri,
headers: {
"api-auth-id": this.unleashed_software.$auth.api_id,
"api-auth-signature": signature,
"Accept": "application/json",
"Content-Type": "application/json; charset=utf-8",
},
});
},
})