Git Product home page Git Product logo

Comments (6)

eth8505 avatar eth8505 commented on July 17, 2024 2

@pedramham demo mode shouldn't affect your access to the API. This is especially awkward behavior as it seems to respond as HTML. The API should always return JSON responses though.
I may have found the cause though, found an exception from around the time you created your ticket concerning recipientlist creates via the API. Will look into it and get back to you.

Regarding your query question: Filtering lists by name is currently not supported.

from rapidmail-apiv3-client-php.

eth8505 avatar eth8505 commented on July 17, 2024 1

@pedramham we have identified the issue. It appears that under certain circumstances the API client generates an invalid request body. Working on a fix.

from rapidmail-apiv3-client-php.

eth8505 avatar eth8505 commented on July 17, 2024

Hello @pedramham.

I tried to reproduce this issue, but could not. Can you try to verify again if the issue persists? For me it works as expected with our test accounts and credentials. I saw that you already contacted our customer support directly. Please let them know which account you're working with so i can trace this further. Please do not post any account details or credentials here though :)

Best wishes
Jan

from rapidmail-apiv3-client-php.

pedramham avatar pedramham commented on July 17, 2024

from rapidmail-apiv3-client-php.

eth8505 avatar eth8505 commented on July 17, 2024

@pedramham i just noticed where the actual issue lies, it's not the client afterall, you simply have an additional array level in your code:

$serviceCreate = $client->recipientlists();
        try {
        $response = $serviceCreate->create([
                'name' => 'test', // Required
                'description' => 'test create list', 
                'unsubscribe_blacklist' => 'no',
                'recipient_subscribe_email' => 'no',
                'default' => 'no',
        ]);
            die($response);
        } catch (ApiClientException $e) {
            echo "Exception raised: " . $e->getMessage();

        }

This is how your code should look - this will work.

I did however identify a bug on the server-side causing wrong responses if data like this is posted. Will be deploying a fix for it this morning.

from rapidmail-apiv3-client-php.

nielsnuebel avatar nielsnuebel commented on July 17, 2024

@eth8505 did you use nginx or apache? I have the same issues with nginx.

from rapidmail-apiv3-client-php.

Related Issues (11)

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.