mailjet / mailjet-apiv3-php

[API v3] Mailjet PHP Wrapper
http://dev.mailjet.com
MIT License
267 stars 87 forks source link

Wrong API version #90

Closed pderouville closed 7 years ago

pderouville commented 7 years ago

Hie

Here is my problem .... :

$mj = new \Mailjet\Client('xxxx', 'zzzz', true, ['url' => "www.mailjet.com", 'version' => 'v3', 'call' => false]); $response = $mj->post(Resources::$Email, ['body' => $body], ['version' => 'v3']);

Answer :

Response {#511 ▼ -status: 400 -success: false -body: null -rawResponse: Response {#509 ▼ -reasonPhrase: "Wrong API version" -statusCode: 400 -headers: array:6 [▶] -headerNames: array:6 [▶] -protocol: "1.1" -stream: Stream {#507 ▶} } +"request": Request {#33 ▶} }

Any idea ?

Zhivko-Mailjet commented 7 years ago

HI @pderouville

Your Mailjet account is running on the old API platform and has to be migrated. Please contact our support for details.

pderouville commented 7 years ago

Ok thanks a lot )