Comments (6)
@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.
@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.
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.
from rapidmail-apiv3-client-php.
@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.
@eth8505 did you use nginx or apache? I have the same issues with nginx.
from rapidmail-apiv3-client-php.
Related Issues (11)
- API returns empty result on more than one status in filter HOT 2
- Deprecated function: PHP 8.1 HOT 8
- Fatal error: During inheritance of ArrayAccess HOT 2
- for Creating a new recipient. even for 202 responses, I got an Exception HOT 11
- Using ${var} in strings is deprecated, use {$var} instead HOT 1
- Question / Feature request: create recipients with tags (Stichworte) HOT 1
- /mailings query filter 'updated_since' always returns 400 Bad Request HOT 3
- Create recipients throws exception on 201 HOT 8
- Outdated dependencies / project still maintained? HOT 3
- Support "tags" field when creating/updating recipients 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 rapidmail-apiv3-client-php.