Comments (8)
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
from klaviyo-api-php.
@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.
If we try to pass data like this, it just doesnt work. So docs doesnt help... Or I dont understand how to use it.
from klaviyo-api-php.
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.
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)
- Duplicated class constants causing errors HOT 2
- Undefined property: KlaviyoAPI\KlaviyoAPI::$3 HOT 1
- Constant names assigned twice HOT 6
- Can't mock Guzzle? HOT 2
- Array to String Conversion - createListsRelationships() HOT 2
- Use PSR-18 "http-client" interface instead of Guzzle
- $consent variable reseted after double opt-in subscription? HOT 3
- Error while creating a profile HOT 2
- Typo on README.md HOT 1
- Add unit tests and code coverage checks. HOT 1
- Can't install on Laravel6 HOT 1
- page_cursor not working or documented wrong HOT 9
- Errors in using updateProfile and createProfile HOT 4
- Undefined array key 3 on getProfiles endpoint when using more than 3 arguments HOT 3
- $body payload structure HOT 1
- Creation of dynamic property is deprecated at PHP 8.1 and above HOT 1
- Missing price property in `CatalogItemCreateQueryAsSubResourceAttributes` model HOT 1
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 klaviyo-api-php.