Giter VIP home page Giter VIP logo

mailjet-api-php's People

Contributors

docteurklein avatar h4cc avatar inoryy avatar pedrotroller avatar seb-celinedesign avatar valegar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mailjet-api-php's Issues

Post request are broken

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.

The API has stopped to work

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?

apiKeylist API returns an array of key, but the API returns only the last element

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

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.