This service aims to aid small and mid-sized bloggers to automate the process of delivering newsletters to subscribers. Blogger needs to hook two requests to their blog code and focus on writing amazing blogs. Your subscribers are going to receive the newsletters when you publish a new.
- How to create an account?
- How to create a project?
- How to activate newsletter service?
- Set-up the subscribe.
- Set-up the push newsletters.
- Open the cknewsletter.herokuapp.com
- Sign up with your email account.
-
Sign In with your account credentials.
-
Click on new to create a new project.
-
Fill details about your project.
- Optionally, you can set-up your custom ( HTML ) newsletter template.
-
Submit it.
These email credentials will be used to send newsletters to your subscribers.
-
You need to go to the profile page.
-
Put your email and password credential to the relative input fields.
-
Select your email service.
-
Save it.
-
Create a fetch request with
PATCH
method. -
Need to put two properties into the payload ( body ).
{ "subscriber": "***@gmail.com", "apiKey": "15870449476249g9uo****" }
- The
subscriber
should be dynamic. It should be your subscriber's email. - The
apiKey
should be your project's API Key.
- The
-
Now you can make a patch request with these data on this endpoint: https://cknewsletter.herokuapp.com/api/v1/projects/subscribe
-
Your subscribers will be stored in this project's data.
-
Place this code in your blog's code where it will be invoked whenever your user submit the subscribe form.
-
Create a fetch request with
PATCH
method. -
Need to put two properties into the payload ( body ).
{ "slug": "vue", "apiKey": "15870449476249g9uo****" }
- Replace the apiKey with your project's API key.
- Slug should be dynamic. Your article slug or id should be the value of slug key.
-
Notice that your slug will be used to create the link to your article. For Ex: "https://myblog.com/blog/vue"
-
Now you can make a patch request with these data on this endpoint: https://cknewsletter.herokuapp.com/api/v1/projects/slug
-
Place this patch request code to your blog code where it makes this request every time whenever you publish a new article.
-
It will push the newsletter to your subscribers of particular project.
Voila, You are done now. Now write the best and keep your subscribers in sync with your latest articles.
Feel free to reach out to me on [email protected]
This project is MIT licensed unless otherwise specified.