import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    notiff_io: {
      type: "app",
      app: "notiff_io",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: "post",
      url: `https://notiff.io/api/1.1/wf/me`,
      headers: {
        Authorization: `Bearer ${this.notiff_io.$auth.oauth_access_token}`,
      },
    })
  },
})
Send a new notification to a user or system via notiff.io. See the documentation
Notiff (OAuth) uses OAuth authentication. When you connect your Notiff (OAuth) account, Pipedream will open a popup window where you can sign into Notiff (OAuth) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Notiff (OAuth) API.
Pipedream requests the following authorization scopes when you connect your account:
GEThttps://notiff.io/api/1.1/oauth/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&response_type=codePOSThttps://notiff.io/api/1.1/oauth/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}POSThttps://notiff.io/api/1.1/oauth/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}