import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    autoblogger: {
      type: "app",
      app: "autoblogger",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://autoblogger-api.otherweb.com/api/v1/site/validate/apikey`,
      headers: {
        "x-api-key": `${this.autoblogger.$auth.api_key}`,
      },
    })
  },
})
AutoBlogger uses API keys for authentication. When you connect your AutoBlogger account, Pipedream securely stores the keys so you can easily authenticate to AutoBlogger APIs in both code and no-code steps.