with ServiceTitan and Api Void?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicetitan: {
type: "app",
app: "servicetitan",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api${this.servicetitan.$auth.environment}servicetitan.io/settings/v2/tenant/${this.servicetitan.$auth.tenant_id}/employees`,
headers: {
Authorization: `Bearer ${this.servicetitan.$auth.oauth_access_token}`,
"st-app-key": `${this.servicetitan.$auth.client_id}`,
},
})
},
})
With the Api Void API, you can build apps that:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
api_void: {
type: "app",
app: "api_void",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://endpoint.apivoid.com/iprep/v1/pay-as-you-go/`,
params: {
key: `${this.api_void.$auth.api_key}`,
ip: `{enter_ip_here}`,
},
})
},
})