Giter VIP home page Giter VIP logo

Comments (3)

jon-batscha avatar jon-batscha commented on July 19, 2024 1

Hey, thanks for reaching out!

Regarding the 500 error: I was able to reproduce the issue on my end. The team that owns this is looking into it now.

Regarding your second question:

The reason for this is that we essentially have 2 types of templates: reusable templates and non-reusable templates.

Reusable templates are what you edit; when a campaign message gets assigned a template, that template is actually a non-reusable clone of the given template.

get_templates only returns the original, reusable templates, hence the count mismatch.

That said, this overall behavior is as puzzling to me as it is to you, as presumably we’d want some way to trace a given non-reusable template back to its source, which is not currently possible. This also seems to be related to the 500 errors we’re seeing, as I’m only seeing the error when calling get_template on a non-reusable template’s id.

I know that ’s not the optimal answer you were looking for, as we clearly have some work to do to improve these endpoints. While we're waiting on this fix, I’ll also reach out to our writing team to put together a guide to clarify reusable vs non-reusable templates.

Please do reach out if you run into any further issues. We super appreciate this kind of feedback, as it helps us iterate and make a better product for our developers.

Cheers!
Jon

from klaviyo-api-python.

davhin avatar davhin commented on July 19, 2024

I also found that when I use Templates.get_templates() I get fewer templates than what Campaigns.get_campaign_message() and using the contained 'template_id' would impy. Does the Campaigns API include potentially deleted templates and the Templates API does not?

Happy for any insight!

from klaviyo-api-python.

davhin avatar davhin commented on July 19, 2024

We are currently filtering for the deleted template ids which thankfully is not a long operation :) appreciate the detailed answer!

from klaviyo-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.