Comments (6)
Not sure what is happening but I would recommend checking your campaign type.
if you look at the documentation here campaigns should be in draft and has step value equal to 3.
The current code does not check these 2 conditions yet. Can you check this?
also, can you show the return value of api.campaigns.send(campaign_id)
?
Thanks
from mailerlite-api-python.
It's still a little bit confusing for me how to check these conditions.
also, can you show the return value of api.campaigns.send(campaign_id)?
{
"error": {
"code": 404,
"message": "Campaign not found"
}
}
Thank you for your help!
from mailerlite-api-python.
also, can you show the return value of api.campaigns.send(campaign_id)?
Here it is:
(200, {'id': 47726474, 'total_recipients': 0, 'type': 'regular', 'extra_type': None, 'name': 'Regular newsletter', 'status': 'outbox', 'step': 3, 'send_rule': None, 'opened': {'count': None, 'rate': None}, 'clicked': {'count': None, 'rate': None}, 'followup_info': {'send_type': 'regular', 'followup_send_type': None}, 'ab_info': {'send_type': 'regular', 'ab_win_type': None}, 'date_created': '2022-02-03 19:43:24', 'date_send': '2022-02-03 19:43:00', 'date_end': None, 'mail': {'id': 50523986, 'date': '2022-02-03 19:43:24', 'subject': "subject", 'code': 'i2u6p4b6a1', 'from': '[email protected]', 'from_name': 'Myname', 'url': 'url-letter', 'send_date': '2022-02-03 19:43:00', 'host': 'mailerlite.com', 'type': 'template', 'screenshot': 'https://static.mailerlite.com/images/newsletter_screenshot2.png', 'screenshot_big': 'https://static.mailerlite.com/images/newsletter_screenshot2.png', 'updated': '2022-02-04 01:43:24', 'track_opens': 1, 'language': {'code': 'en', 'title': 'English'}, 'groups': [{'id': 111111111, 'name': 'subs', 'total': 0, 'active': 0, 'unsubscribed': 0, 'bounced': 0, 'unconfirmed': 0, 'junk': 0, 'sent': 0, 'opened': 0, 'clicked': 0, 'ordering': 0, 'updating': 0, 'user_id': 0, 'date': '2022-01-31 10:13:25', 'updated': '2022-01-31 10:13:55'}]}, 'mails': [{'id': 111111111, 'date': '2022-02-03 19:43:24', 'subject': "Subject", 'code': 'code', 'from': '[email protected]', 'from_name': 'myname', 'url': 'url', 'send_date': '2022-02-03 19:43:00', 'host': 'mailerlite.com', 'type': 'template', 'screenshot': 'https://static.mailerlite.com/images/newsletter_screenshot2.png', 'screenshot_big': 'https://static.mailerlite.com/images/newsletter_screenshot2.png', 'updated': '2022-02-04 01:43:24', 'track_opens': 1}], 'includes_survey': False, 'has_ecommerce': False, 'report_date': None})
from mailerlite-api-python.
Ooops, after I filed the whole letter it started to work!
from mailerlite-api-python.
Cool 👍🏾 , thanks for the feedback. Sorry I did not get back to you, quite a busy week.
after I filed the whole letter
What do you mean by that?
from mailerlite-api-python.
What do you mean by that?
As soon as I added the whole content of my letter (not just the test message) it accidentally started to work!
from mailerlite-api-python.
Related Issues (20)
- campaign_name is missing in Activity HOT 1
- Need a new version for the latest changes HOT 3
- Add send later functionnality
- Add new attributes to campaign
- <lambda>() got an unexpected keyword argument 'user_agent' HOT 1
- implement limit and offset for subscribers activity HOT 4
- Using `make_dataclasses` to handle new keys HOT 1
- AttributeError: 'MailerLiteApi' object has no attribute 'campaign' HOT 2
- No module named 'mailerlite' HOT 4
- No webform_subscribe_date on subscribers post response HOT 1
- TypeError: __new__() got an unexpected keyword argument 'webform_subscribe_date' HOT 1
- Unable to get Subscriber group_id HOT 2
- Mailerlite does not send mail with "sending..." HOT 5
- Base URL for API endpoints has changed? HOT 4
- add_single_subscriber updated? HOT 1
- Can get and search subscriber by email HOT 1
- Ability to fetch a subscribers status in a group? HOT 4
- Performance suggestion HOT 2
- Support rate limits HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailerlite-api-python.