Simple client for phpList REST API
restapiclientsimpleexample's Introduction
restapiclientsimpleexample's People
restapiclientsimpleexample's Issues
How can target a LIST , How to add attributes to the JSON
Dear @xh3n1
Am testing the Rest API, and it works great.
The problem is how can I target a specific List.
and how can I add the attributes to the json?
try {
$subscriberRequest = $client->request('POST', $base_uri . '/subscribers',
[
'headers' => [
'Authorization' => 'Basic ' . $credentials,
'Content-Type' => 'application/json',
],
'json' => [
'email' => '[email protected]',
'confirmed' => true,
'blacklisted' => false,
'html_email' => true,
'disabled' => false,
],
]
);
} catch (\GuzzleHttp\Exception\GuzzleException $e) {
}
add new subscriber and adding him to lists?
How to add a subscriber to a list?
SubscriberController.php just adds a subscriber to the database but there doesn't seem to be a possibility to add the subscriber to lists.
Also no confirmation mail gets sent out.
What am I missing?
Issue with 'Add a new subscriber' in RestAPIclientSimpleExample.php
Hi there,
today I started to play around with the example file 'RestAPIclientSimpleExample.php'.
Main iterest for me is the part 'Add a new subscriber'.
The first parts of the example is basically working - however for the 'Add a new subscriber' part I am getting the Error message:
Fatal error: Uncaught Error: Call to a member function getBody() on null
Has anyone out there got the 'Add a new subscriber' part correctly working?
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.