with Plain and FogBugz?
Emit new event instantaneously when something significant happens to a case.
Emit new new event when there's a new case under a specified filter. Note this may not effectively work for filters that generate results too long, or filters with more than 50,000 cases, especially if your FogBugz site is running Ocelot.
Emit new event when a new person or a user is created in FogBugz. It effectively tracks the addition of new users in the system.
The Plain API provides functionality for automating customer support tasks, such as managing conversations, customers, and team inboxes. Within Pipedream, you can leverage these features to create custom workflows that respond to events from your app or external services, triggering actions in Plain. By integrating the Plain API with Pipedream, you can enhance customer support efficiency, streamline communication, and keep customer data synchronized across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plain: {
type: "app",
app: "plain",
}
},
async run({steps, $}) {
const data = {
"query": `query Workspace {
workspace(workspaceId: "${this.plain.$auth.workspace_id}") {
id
publicName
}
}`,
}
return await axios($, {
method: "post",
url: `https://core-api.uk.plain.com/graphql/v1`,
headers: {
Authorization: `Bearer ${this.plain.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
The FogBugz API allows you to interact with your FogBugz software development tracking system programmatically. With this API, you can create, read, update, and delete cases; manage projects, areas, and categories; and perform searches to gather data-driven insights. Integrating FogBugz with Pipedream opens up possibilities for automating workflows, syncing data across platforms, and reacting to events within FogBugz in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
fogbugz: {
type: "app",
app: "fogbugz",
}
},
async run({steps, $}) {
const data = {
"cmd": `listPeople`,
"token": `${this.fogbugz.$auth.api_token}`,
}
return await axios($, {
method: "post",
url: `https://${this.fogbugz.$auth.your_site}.fogbugz.com/f/api/0/jsonapi`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})