import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    dart: {
      type: "app",
      app: "dart",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://app.itsdart.com/api/v0/users`,
      headers: {
        Authorization: `Bearer ${this.dart.$auth.api_key}`,
        "Accept": `application/json`,
      },
    })
  },
})
Record a new doc that the user intends to write down. This will save the doc in Dart for later access, search, etc. By default the created doc will be in the Docs folder. More information can be included in the text. See the documentation
Move an existing doc to the trash, where it can be recovered if needed. Nothing else about the doc will be changed. See the documentation
Checks for an existing task within a dartboard using the 'task-name'. If it doesn't exist, a new task is created. See the documentation
Update certain properties of an existing doc. This will save the doc in Dart for later access, search, etc. Any properties that are not specified will not be changed. See the documentation
Dart uses API keys for authentication. When you connect your Dart account, Pipedream securely stores the keys so you can easily authenticate to Dart APIs in both code and no-code steps.