Comments (4)
Hi there, the data body itself is formatted correctly so I suspect that the issue is with the way the profile object is formatted. The profile itself should be formatted as follows:
profile: { data: { type: "profile", id: @klaviyo_profile_id attributes: { email: @email, phone_number: @phone, external_id: @external_id } } }
Please note that the "id" and the "external_id" are different. The "id" field is for the Klaviyo id of the profile, while the "external_id" can be whatever value you'd like. Both values are optional and do not need to be included.
For additional assistance with this issue I would recommend reaching out to our Support team who will be able to take a closer look at the specifics of the request in your Klaviyo account.
from klaviyo-api-ruby.
The profile object I'm passing is the exact response I'm getting from get_profile
. Shouldn't that be formatted exactly as needed?
The error doesn't seem very verbose or relevant or helpful.
from klaviyo-api-ruby.
The profile format in the create_event
request is different from the profile
of the get_profile
response. get_profile
returns JSON and so that will need to be parsed into the necessary profile object in the create_event
request. This is helpful feedback that I'll pass along.
from klaviyo-api-ruby.
That was my issue, once I manually built the profile
object it worked. I guess I assumed I would be able to pass it what was returned in the get_profile
response.
It would be great if these errors were at little more verbose.
from klaviyo-api-ruby.
Related Issues (7)
- get_list api does not support additional_fields HOT 2
- [__NSCFConstantString initialize] may have been in progress in another thread when fork() was called HOT 4
- Is the gem working ? HOT 2
- Is it possible to use OAuth access tokens to make API calls with this gem? HOT 2
- Cannot get filtering to work HOT 2
- README outdated HOT 3
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-ruby.