Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Base URL for API endpoints has changed? #53

Closed
telefunkst opened this issue Oct 22, 2022 · 4 comments
Closed

Base URL for API endpoints has changed? #53

telefunkst opened this issue Oct 22, 2022 · 4 comments

Comments

@telefunkst
Copy link

It seems like the URL set in MAILERLITE_API_V2_URL is no longer correct: https://api.mailerlite.com/api/v2/
Mailerlite API documentation suggests using https://connect.mailerlite.com

I am having issues with creating a campaign, and I believe this is the cause. Perhaps MAILERLITE_API_V2_URL should be updated?

@skoudoro
Copy link
Owner

Hi @telefunkst,

Good catch! Thank you for letting me know! I will update that tomorrow and do a new release.
It seems they made a big update on the developer website. I need to update other link also.

Thanks !

Ps: feel free to contribute and make a PR if you have time to do it today

@skoudoro
Copy link
Owner

Hi @telefunkst,

After doing some tests, I realized that the current url is working correctly.

it seems they renamed the API and this one is not anymore the V2 but the V1 / V2_BETA.

So I will just rename it and try to add the new V2 API on this project.

Thanks again, closing for now

@telefunkst
Copy link
Author

Hi @skoudoro ,
The problem that prompted my raising this issue was the fact that the method to get the campaigns, as described in the mailerlite-api-python documentation, doesn't work:

>>> all_campaigns = api.campaigns.all()
>>> draft = api.compaings.all(status='draft')

My assumption is still that this is related to endpoints changes, because using this method results in {"error":{"message":"Endpoint not found"}}

@skoudoro
Copy link
Owner

ok, it seems they broke the old version and the new one is not ready and use sometimes the old version. it is messy.

We are not the only one encountering this problem as you can see on this issue: jpalumickas/mailerlite-ruby#38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants