Comments (1)
Hi - Brandon @ Klaviyo support kindly helped me out with this one so thought Iād share an example of a working $body payload. Obviously LIST_ID needs replacing with your list ID.
Thanks
$body = array(
"data" => array(
"type" => "profile-subscription-bulk-create-job",
"attributes" => array(
"subscriptions" => array(
array(
"email" => "[email protected]",
)
),
"list_id" => "LIST_ID"
)
)
);
$klaviyo->Profiles->subscribeProfiles($body);
from klaviyo-api-php.
Related Issues (14)
- 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
- 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.