Coder Social home page Coder Social logo

Comments (8)

jon-batscha avatar jon-batscha commented on June 18, 2024

In the list of operations, the operation name is a link to our API-level docs, which give details on how the payload should be structured. In this case, that link is: https://developers.klaviyo.com/en/reference/create_event
Screenshot 2024-02-02 at 9 39 36 AM

from klaviyo-api-php.

jack-fdrv avatar jack-fdrv commented on June 18, 2024

@jon-batscha Thanks.
But, i was not able to find any example or mentions that createEvent need object from EventCreateQueryV2. Did you?
And there is no docs how to create that object via EventCreateQueryV2, what structure should be?

from klaviyo-api-php.

jack-fdrv avatar jack-fdrv commented on June 18, 2024

If we try to pass data like this, it just doesnt work. So docs doesnt help... Or I dont understand how to use it.
image

from klaviyo-api-php.

jon-batscha avatar jon-batscha commented on June 18, 2024

are you able to create an event in postman, but not in PHP? (asking to try to narrow down where the problem lies)

Also, can you share with me your code where you try to create an event?

from klaviyo-api-php.

jack-fdrv avatar jack-fdrv commented on June 18, 2024

I was able to create a postman, and even user GuzzleHttp from doc's example and it all works fine.
But SDK, whic hhave amodel structure just build different.
And it just hard to understand how can i pass data to model to create an event.
I have played a lot and figure it out but it is hard.
So I woud like to ask gheneral advice what is the best approach to do it? If there is not docs about strucutre, and it is really hard to understand structure from reaing original code, what is the right way to use sdk?

from klaviyo-api-php.

Related Issues (18)

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.