src/Services/MailjetService.php
public function createContact($body)
    {
        $response = $this->client->post(Resources::$Contact, ['body' => $body]);
        if (!$response->success()) {
            $this->throwError("MailjetService:createContact() failed", $response);
        }
        return $response;
    }
public function createContact($body)
    {
        $response = $this->client->post(Resources::$Contact, ['body' => $body]);
        if (!$response->success()) {
            $this->throwError("MailjetService:createContact() failed", $response);
        }
        return $response;
    }
public function createContact ( $ body ) { $ response = $ this -> client -> post ( Resources :: $ Contact , [ 'body' => $ body ] ) ; if ( ! $ response -> success ( ) ) { $ this -> throwError ( "MailjetService:createContact() failed" , $ response ) ; } return $ response ; }
create a contact
@param  array $body array containing the list informations. the 'Email' parameter is mandatory.See mailjet API documentation for all parameters available
@return array
create a contact