Skip to content

Instantly share code, notes, and snippets.

@ArtisanTinkerer
Last active September 7, 2021 08:19
Show Gist options
  • Save ArtisanTinkerer/12259cc34de378ae2acac630105d8be4 to your computer and use it in GitHub Desktop.
Save ArtisanTinkerer/12259cc34de378ae2acac630105d8be4 to your computer and use it in GitHub Desktop.
patch with Guzzle
/**
* @test
*/
public function enableSignedWebhook(): void
{
$token = getenv('SENDGRID_API_KEY');
$response = Http::withToken($token)
->asJson()
->patch('https://api.sendgrid.com/v3/user/webhooks/event/settings/signed', ['enabled' => true]);
$this->assertTrue(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment