This Banner is For Sale !!
Get your ad here for a week in 20$ only and get upto 15k traffic Daily!!!

Loading the total Sendy subscribers

You might need noticed the little standing determine on the brand new design. It reveals the variety of articles written and the present complete subscribed individuals to the publication.

Total subscribers from Sendy

For these not conversant in Sendy, it is a self-hosted e mail platform.
Very like Mailchimp, however self-hosted and behind the scenes powered by Amazon SES.

You could find extra data on this article I wrote about Sendy.

Retrieving an API token

The very first thing we should do is go to our Sendy occasion and retrieve an API token so we are able to begin speaking with it.

Login to your Sendy atmosphere and go to the Settings panel.

Sendy API Token

From there, we instantly must entry the API token.

When you retrieve it, we are able to begin engaged on our API name to retrieve the lively subscriber depend.

Retrieving the Subscriber depend from Sendy

First, we’ll must outline a few variables.

  • API Endpoint

The API endpoint is your Sendy area occasion, adopted by the API name.

Within the case of retrieving the full subscribers, we’ll find yourself with an API endpoint like this:
Enter fullscreen mode

Exit fullscreen mode

The API_KEY is the token we simply fetched from Sendy, and for the LIST_ID, we have to return into Sendy and click on View all checklist inside that display screen, you may discover the ID.

Finding the list ID in Sendy

Upon getting these three items of knowledge, we are able to begin attempting out the API name.

I will be utilizing Insomnia to demo this out, however you possibly can even use any API shopper or code.

Set the URL to be the API endpoint, and make the request a POST, then go two fields as the shape knowledge:

Then attempt to run the request and see what occurs. You need to get a quantity that represents your present lively subscribers.

Trying out the Sendy API

And there you go, we get the newest subscriber depend!

Now you can mimic this name in your favourite programming language and present the variety of individuals subscribed to your system.

Thanks for studying, and let’s join!

Thanks for studying my weblog. Be happy to subscribe to my e mail publication and join on Facebook or Twitter

The Article was Inspired from tech community site.
Contact us if this is inspired from your article and we will give you credit for it for serving the community.

This Banner is For Sale !!
Get your ad here for a week in 20$ only and get upto 10k Tech related traffic daily !!!

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to Contribute to us or want to have 15k+ Audience read your Article ? Or Just want to make a strong Backlink?