with Splunk HTTP Event Collector and Autodesk?
Emit new event when a new version of a file is created in Autodesk. See the documentation
Emit new event when a folder is added to a specified folder in Autodesk. See the documentation
Emit new event when a new project is created in Autodesk. See the documentation
Checks the health status of the Splunk HTTP Event Collector to ensure it is available and ready to receive events. See the documentation
Creates a new folder in a project in Autodesk. See the documentation
Sends multiple events in a single request to the Splunk HTTP Event Collector. See the documentation
Sends an event to Splunk HTTP Event Collector. See the documentation
Uploads a new file to a specified folder in Autodesk. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
splunk_http_event_collector: {
type: "app",
app: "splunk_http_event_collector",
}
},
async run({steps, $}) {
const data = {
"event": `Hello world!`,
"sourcetype": `manual`,
}
return await axios($, {
method: "post",
url: `${this.splunk_http_event_collector.$auth.api_url}:${this.splunk_http_event_collector.$auth.port}/services/collector`,
headers: {
"authorization": `Splunk ${this.splunk_http_event_collector.$auth.api_token}`,
},
params: {
channel: `2AC79941-CB26-421C-8826-F57AE23E9702`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
autodesk: {
type: "app",
app: "autodesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.userprofile.autodesk.com/userinfo`,
headers: {
Authorization: `Bearer ${this.autodesk.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})