with Predis.ai and Templated?
Creates a render on a template in Templated. See the documentation
Retrieves a single template object referenced by its unique ID. See the documentation
List all templates of a user on Templated. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    predis_ai: {
      type: "app",
      app: "predis_ai",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://brain.predis.ai/predis_api/v1/get_posts/`,
      headers: {
        "authorization": `${this.predis_ai.$auth.api_key}`,
      },
      params: {
        brand_id: `${this.predis_ai.$auth.brand_id}`,
      },
    })
  },
})
The Templated API allows users to generate custom documents based on predefined templates. It's a powerful tool when you need to create consistent documents or reports with variable data. In Pipedream, you can seamlessly integrate Templated with other services to automate document creation. Combine data from various sources, trigger document generation, and carry out follow-up actions like emailing the document or saving it to cloud storage.
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    templated: {
      type: "app",
      app: "templated",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.templated.io/v1/templates`,
      headers: {
        Authorization: `Bearer ${this.templated.$auth.api_key}`,
      },
    })
  },
})