knplabs / mailjet-api-php Goto Github PK
View Code? Open in Web Editor NEWPHP API for Mailjet
Home Page: http://www.mailjet.com/docs/api
License: MIT License
PHP API for Mailjet
Home Page: http://www.mailjet.com/docs/api
License: MIT License
All Post request to Mailjet API send 400 bad request response.
This is because params need to be passed inside post body and not in query string.
When requesting a contact list, the remote API returns 404. This is mostly related to the fact that KnpLabs/mailjet-api-php uses MailJet v0.1 API under the hood. Do you plan to migrate to a working API?
Exemple :
use Mailjet\Api\Client;
use Mailjet\Api\RequestApi;
$client = new Client($apiKey, $secretKey);
$keyLists = $client->get(RequestApi::API_KEY_LIST);
print_r($keyLists);
Array
(
[apikey] => __apikey2__
[type] => subuser
[name] => __name2__
[created_at] => 1375274956
[active] => 1
[custom_status] => up
)
instead of:
Array
(
[0] => Array
(
[apikey] => __apikey1__
[type] => main
[name] => __name1__
[created_at] => 1375087042
[active] => 1
[custom_status] => up
)
[1] => Array
(
[apikey] => __apikey2__
[type] => subuser
[name] => __name2__
[created_at] => 1380099873
[active] => 1
[custom_status] => up
)
...
The error is found in the src/Mailjet/Api/Client.php a line 173.
The name has systematic array_pop function is not necessarily the right solution
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.