with Status Hero and Expensify?
Emit new events when new status update (check-in) occurs. See the docs here
Emit new events when new comments are created on statuses. See the docs here
Emit new events when new reaction for a status update (check-in) occurs. See the docs here
Creates a new report with transactions in a user's account. See docs here
Export Expensify reports to a file (csv, xls, xlsx, txt, pdf, json, xml). See the documentation
The Status Hero API allows you to interface with the Status Hero platform programmatically, enabling you to automate stand-ups, collect team status updates, and integrate this data with other apps and services. By leveraging Pipedream's capabilities, you can set up workflows that react to new check-ins, sync updates to project management tools, or analyze team productivity by aggregating status data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
status_hero: {
type: "app",
app: "status_hero",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://service.statushero.com/api/v1/members`,
headers: {
"X-Team-ID": `${this.status_hero.$auth.team_id}`,
"X-API-Key": `${this.status_hero.$auth.api_key}`,
},
})
},
})
The Expensify API enables the automation of expense reporting and management tasks. By harnessing this API within Pipedream, you can craft workflows that streamline the expense submission process, synchronize financial data across platforms, and trigger actions based on expense report statuses. With Pipedream’s serverless platform, these automations can run in the background, allowing for real-time data processing and interaction between Expensify and a myriad of other apps and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
expensify: {
type: "app",
app: "expensify",
}
},
async run({ steps, $ }) {
// The Expensify API requires the request data to be sent as
// a URL-encoded form with a key of "requestJobDescription".
// The value of this key must be a JSON string.
// First, define the JSON object as per the Expensify API documentation.
const requestJobDescription = {
type: "get",
credentials: {
partnerUserID: this.expensify.$auth.partnerUserId,
partnerUserSecret: this.expensify.$auth.partnerUserSecret,
},
inputSettings: {
type: "policyList",
}
};
// Use URLSearchParams to create a properly formatted form body.
const formData = new URLSearchParams();
formData.append('requestJobDescription', JSON.stringify(requestJobDescription));
// Make the API call with the correctly formatted data.
return await axios($, {
method: "post",
url: `https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations`,
data: formData,
// It's good practice to explicitly set the Content-Type header
// to match the data format.
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
});
},
})