mailerlite-ruby icon indicating copy to clipboard operation
mailerlite-ruby copied to clipboard

MailerLite API is pretty broken atm

Open chiperific opened this issue 3 years ago • 6 comments
trafficstars

First, thank you so much for this gem. It's way better than my HTTParty-based client.

I've exchanged a few emails with MailerLite about their "Classic" API and several endpoints are broken. I know webhooks and campaigns_by_status specifically return 404. And subscriber_activities is returning a 500 error.

Even though the "Classic" API has a V1 and V2, they say they are launching a V2 API and pointed me to new docs:

Here’s the documentation for the New version, some endpoints from the Classic are not available yet: https://mailerlite.github.io/reference/#mailerlite-api

They change the base URL to https://connect.mailerlite.com/api and have only rolled out some of the endpoints, with no ETA for completion, even for specific milestones like webhooks.

This is mostly just a heads-up that their current API is pretty broken and they don't seem to be maintaining it while they work on V2.

If you're still willing to maintain this repo, I'd love to help, maybe add in support for the new API with fallbacks to the old.

chiperific avatar Jul 15 '22 16:07 chiperific

hey @chiperific

Hmm, I see, so as I understand now we need to change some endpoints to the new one, but while they not completed v2 API fully, we need support v1 (with v2 version) api, right?

jpalumickas avatar Jul 18 '22 11:07 jpalumickas

Yes, my thought was to add some checks on initialization. Try the new endpoints, if they return 404, then fall back to the old.

I think this would mean having separate host variables for the main endpoints: subscribers, groups, webhooks, campaigns, etc.

Maybe that's overkill though. We could just change the methods we know are now available in V2 and then just try to watch their blog for more releases.

chiperific avatar Jul 18 '22 16:07 chiperific

Yes, my though was to add some checks on initialization. Try the new endpoints, if they return 404, then fall back to the old.

I think this would mean having separate host variables for the main endpoints: subscribers, groups, webhooks, campaigns, etc.

Maybe that's overkill though. We could just change the methods we know are now available in V2 and then just try to watch their blog for more releases.

  • Chip

On Mon, Jul 18, 2022, 07:22 Justas Palumickas @.***> wrote:

hey @chiperific https://github.com/chiperific

Hmm, I see, so as I understand now we need to change some endpoints to the new one, but while they not completed v2 API fully, we need support v1 (with v2 version) api, right?

— Reply to this email directly, view it on GitHub https://github.com/jpalumickas/mailerlite-ruby/issues/38#issuecomment-1187124554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZRB6532GFQZ6HC57G763VUU45RANCNFSM53WCL7BQ . You are receiving this because you were mentioned.Message ID: @.***>

chiperific avatar Oct 11 '22 07:10 chiperific

It looks like the new API can filter campaigns by status and show subscriber activity so they've been making progress. I don't see anything about webhooks yet though.

samsonjs avatar Oct 17 '22 17:10 samsonjs

@samsonjs nice! let's wait little bit more. Is v1 still broken?

jpalumickas avatar Oct 24 '22 08:10 jpalumickas

@jpalumickas We sometimes get 5xx level errors but overall v1 works fine for us, and there's no indication that the errors we do see would be fixed by using the new API.

samsonjs avatar Nov 01 '22 21:11 samsonjs