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,
})
},
})
Emit new event when a new connection is formed (new lead).
Swapcard Exhibitor uses API keys for authentication. When you connect your Swapcard Exhibitor account, Pipedream securely stores the keys so you can easily authenticate to Swapcard Exhibitor APIs in both code and no-code steps.