with Swapcard Exhibitor and Sign.Plus?
Emit new event when a new connection is formed (new lead).
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
swapcard_exhibitor: {
type: "app",
app: "swapcard_exhibitor",
}
},
async run({steps, $}) {
const data = {
"query": "query TestQuery { __typename }"
}
return await axios($, {
method: "post",
url: `https://developer.swapcard.com/exhibitor/graphql`,
headers: {
"Authorization": `${this.swapcard_exhibitor.$auth.api_key}`,
"x-apollo-operation-name": `TestQuery`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sign_plus: {
type: "app",
app: "sign_plus",
}
},
async run({steps, $}) {
const data = {
"sandbox": true
}
return await axios($, {
method: "post",
url: `https://restapi.sign.plus/v2/templates`,
headers: {
Authorization: `Bearer ${this.sign_plus.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})