Git Product home page Git Product logo

restapiclientsimpleexample's Introduction

REST API client

Simple client for phpList REST API

restapiclientsimpleexample's People

Contributors

xh3n1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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 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.