Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to configure Headers for Webhooks #275

Open
JJetmar opened this issue Jan 24, 2024 · 0 comments
Open

Add possibility to configure Headers for Webhooks #275

JJetmar opened this issue Jan 24, 2024 · 0 comments
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@JJetmar
Copy link

JJetmar commented Jan 24, 2024

Feature

In the past there was added "feature on Apify Platfrom" which allowed to put headers to the Request when adding Webhook integration to the Actor.

But this was not reflected to the SDK yet. There are people asking for it on discord.

Motivation

Keep in sync the possibility of the Platform with the Apify SDK.

Ideal solution or implementation, and any additional constraints

Possibly just add headers parameter - something like:

await Actor.addWebhook({
  eventTypes: ['ACTOR.RUN.SUCCEEDED'],
  requestUrl: process.env.RUN_SUCCEEDED_WEBHOOK_URL,
  idempotencyKey: process.env.APIFY_ACTOR_RUN_ID,
  headers: {
     'Authorization': Bearer ${process.env.APIFY_API_TOKEN},
  }
})

Alternative solutions or implementations

No response

Other context

image

@B4nan B4nan added the t-tooling Issues with this label are in the ownership of the tooling team. label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

2 participants