import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ticketsauce: {
      type: "app",
      app: "ticketsauce",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.ticketsauce.com/v2/events`,
      params: {
        access_token: `${this.ticketsauce.$auth.oauth_access_token}`,
      },
    })
  },
})
Emit new event when an event is created in Ticketsauce. See the documentation
Get a list of all events owned by the authenticated account. See documentation
Get a list of ticket check-in IDs from the specified event. See documentation
TicketSauce uses OAuth authentication. When you connect your TicketSauce account, Pipedream will open a popup window where you can sign into TicketSauce and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any TicketSauce API.
Pipedream requests the following authorization scopes when you connect your account:
POSThttps://api.ticketsauce.com/v2/oauth/tokenaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentialsPOSThttps://api.ticketsauce.com/v2/oauth/tokenaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentials