with GetAccept and Livespace?
Create a new contact in the database for the current entity See the documentation
Create a document to be able to send it to a recipient. See the documentation
The GetAccept API offers a suite of capabilities for automating and enhancing document workflow and e-signature processes. Within Pipedream's serverless environment, you can leverage the GetAccept API to create documents, send them for e-signature, track their status, and manage recipients. By integrating GetAccept with other apps on Pipedream, you can build powerful workflows to streamline how your business handles agreements, sales proposals, and contracts.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
getaccept: {
type: "app",
app: "getaccept",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getaccept.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.getaccept.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform";
import crypto from "crypto";
export default defineComponent({
props: {
livespace: {
type: "app",
app: "livespace",
}
},
async run({steps, $}) {
const concatenatedString = this.livespace.$auth.api_key
+ this.livespace.$auth.token
+ this.livespace.$auth.api_secret;
const sha1Hash = crypto.createHash('sha1')
.update(concatenatedString)
.digest('hex');
const data = {
"_api_auth": `key`,
"_api_key": `${this.livespace.$auth.api_key}`,
"_api_sha": `${sha1Hash}`,
"_api_session": `${this.livespace.$auth.session_id}`,
}
return await axios($, {
method: "post",
url: `https://${this.livespace.$auth.subdomain}.livespace.io/api/public/json/Default/User_getInfo`,
data,
})
},
})