ItzNotABug / ghosler

Send newsletter emails to your Ghost CMS subscribers & members, using your own email credentials!
Apache License 2.0
47 stars 5 forks source link

Automating Webhook Creation #3

Closed ItzNotABug closed 9 months ago

ItzNotABug commented 9 months ago

In the current setup, there isn't a direct method to verify if a webhook associated with a given API Key already exists. However, the API returns an error when trying to add a webhook with a duplicate Event and Target URL.

We can use this behavior when setting up Ghosler for the first time. Based on the response, we can automatically decide whether to create a new webhook or skip this step if it's already in place.

This approach will simplify the Ghosler setup a bit more than the existing one.

ItzNotABug commented 9 months ago

Can be merged after improved_template branch is completed and closed.