Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

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

Open
Mohankumar28 opened this issue Apr 17, 2018 · 1 comment
Open

Comments

@Mohankumar28
Copy link

Mohankumar28 commented Apr 17, 2018

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
Copy link
Author

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",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant