Code Monkey home page Code Monkey logo

Comments (6)

skoudoro avatar skoudoro commented on June 10, 2024

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.

sergeykaplich avatar sergeykaplich commented on June 10, 2024

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.

sergeykaplich avatar sergeykaplich commented on June 10, 2024

@skoudoro

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.

sergeykaplich avatar sergeykaplich commented on June 10, 2024

Ooops, after I filed the whole letter it started to work!

from mailerlite-api-python.

skoudoro avatar skoudoro commented on June 10, 2024

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.

sergeykaplich avatar sergeykaplich commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.