with dbt Cloud and Tableau?
Emit new event when a label is created in Tableau. See the documentation
Emit new event each time a new workbook is created in Tableau. See the documentation
Retrieve information about an environment. See the documentation
Creates a project on the specified site. You can also create project hierarchies by creating a project under the specified parent project on the site. See the documentation
Downloads images of the sheets of a workbook as a PDF file. See the documentation
Retrieve information about a run artifact. See the documentation
The dbt Cloud API allows users to initiate jobs, check on their status, and interact with dbt Cloud programmatically. On Pipedream, you can harness this functionality to automate workflows, such as triggering dbt runs, monitoring your data transformation jobs, and integrating dbt Cloud with other data services. By leveraging Pipedream's serverless platform, you can create custom workflows that act on dbt Cloud events or use the dbt Cloud API to manage your data transformation processes seamlessly.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    dbt: {
      type: "app",
      app: "dbt",
    }
  },
  async run({steps, $}) {
    const baseUrl = this.dbt.$auth.access_url || `https://${this.dbt.$auth.region}.com/`
    return await axios($, {
      url: `${baseUrl}api/v3/accounts/`,
      headers: {
        "Authorization": `Token ${this.dbt.$auth.api_key}`,
        "Accept": `application/json`,
      },
    })
  },
})
The Tableau API allows you to tap into the robust data visualization and business intelligence capabilities of Tableau. Within Pipedream, you can leverage this API to automate reporting, manage users, update data sources, and extract insights. This enables you to integrate Tableau's analytics with other services, streamlining your data workflows and ensuring your dashboards remain up-to-date with minimal manual effort.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    tableau: {
      type: "app",
      app: "tableau",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.tableau.$auth.domain}/api/3.21/sessions/current`,
      headers: {
        "X-Tableau-Auth": `${this.tableau.$auth.oauth_access_token}`,
        "Accept": `application/json`,
      },
    })
  },
})