Bogardo / Mailgun

Mailgun package for Laravel
MIT License
295 stars 115 forks source link

ErrorException (E_NOTICE) Trying to get property of non-object #138

Open Mohankumar28 opened 6 years ago

Mohankumar28 commented 6 years ago

public function __construct(stdClass $response) { $this->status = $response->http_response_code; [ $this->message = $response->http_response_body->message;] $this->id = property_exists($response->http_response_body, 'id') ? $response->http_response_body->id : ''; $this->data = null; }

Mohankumar28 commented 6 years ago

Can you help on this. I tried this also https://github.com/Bogardo/Mailgun#guzzle-6-example-implementation and installed both "guzzlehttp/guzzle": "^6.3", "php-http/guzzle6-adapter": "^1.1",