Publicamos atualizações frequentes em nossa documentação, e a tradução desta página ainda pode estar em andamento. Para obter as informações mais recentes, acesse a documentação em inglês. Se houver problemas com a tradução desta página, entre em contato conosco.

Configuring webhooks for events in your sponsored account

You can configure webhooks to alert you when you receive new sponsorships or existing sponsors make changes to their sponsorships.

Neste artigo

To monitor changes to your sponsorships, such as cancellations at the end of a pay period, you can create webhooks for your sponsored user or organization account. When you set up a webhook for your sponsored user or organization account, you'll receive updates when sponsorships are created, edited, or deleted. For more information, see the sponsorship webhook event in documentação do GitHub Developer.

Managing webhooks for your sponsored user account

  1. In the upper-right corner of any page, click your profile photo, then click GitHub Sponsors.
    GitHub Sponsors button
  2. If a list of your sponsored and eligible accounts is shown, to the right of your account name, click Dashboard.
    Developer sponsors dashboard button
  3. In the left sidebar, click Webhooks.
    Webhooks tab
  4. Clique em Add webhook (Adicionar webhook).
    Botão Add webhook (Adicionar webhook) na barra lateral Webhooks
  5. Digite uma URL de carga e, se desejar, personalize a configuração. Para obter mais informações, consulte "Criar webhooks."
    Campos para URL da carga e outras opções de personalização
  6. Under "Content type", select which data format you’d like to receive. Para obter mais informações, consulte "Criar webhooks"
    Menu for webhook formatting
  7. Type a secret token. For more information, see "Securing your webhooks."
    Fields for secret token and other customization options
  8. To receive updates for the SponsorshipEvent, select Active.
    Selecting active events
  9. Click Create webhook.
    Create webhook button in the Webhooks sidebar
  10. To edit an existing webhook, click Edit. To remove an existing webhook, click Delete.
    Buttons for managing webhook

Managing webhooks for your sponsored organization

Organization owners can configure webhooks for a sponsored organization.

  1. In the upper-right corner of any page, click your profile photo, then click GitHub Sponsors.
    GitHub Sponsors button
  2. In the list of your sponsored and eligible accounts, to the right of the organization, click Dashboard.
    Organization sponsors dashboard button
  3. In the left sidebar, click Webhooks.
    Webhooks tab
  4. Clique em Add webhook (Adicionar webhook).
    Botão Add webhook (Adicionar webhook) na barra lateral Webhooks
  5. Digite uma URL de carga e, se desejar, personalize a configuração. Para obter mais informações, consulte "Criar webhooks."
    Campos para URL da carga e outras opções de personalização
  6. Under "Content type", select which data format you’d like to receive. Para obter mais informações, consulte "Criar webhooks"
    Menu for webhook formatting
  7. Type a secret token. For more information, see "Securing your webhooks."
    Fields for secret token and other customization options
  8. To receive updates for the SponsorshipEvent, select Active.
    Selecting active events
  9. Click Create webhook.
    Create webhook button in the Webhooks sidebar
  10. To edit an existing webhook, click Edit. To remove an existing webhook, click Delete.
    Buttons for managing webhook

Pergunte a uma pessoa

Não consegue encontrar o que procura?

Entrar em contato