Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Last active November 10, 2015 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwilkerson/0040b196396636a6113c to your computer and use it in GitHub Desktop.
Save robwilkerson/0040b196396636a6113c to your computer and use it in GitHub Desktop.
// $result = $sendgrid->send($email);
// var_dump($result);
// This is the dump of $result...
class SendGrid\Response#21 (4) {
public $code =>
int(200)
public $headers =>
class Guzzle\Http\Message\Header\HeaderCollection#52 (1) {
protected $headers =>
array(7) {
'server' =>
class Guzzle\Http\Message\Header#53 (3) {
...
}
'date' =>
class Guzzle\Http\Message\Header#54 (3) {
...
}
'content-type' =>
class Guzzle\Http\Message\Header#55 (3) {
...
}
'content-length' =>
class Guzzle\Http\Message\Header#56 (3) {
...
}
'connection' =>
class Guzzle\Http\Message\Header#57 (3) {
...
}
'x-frame-options' =>
class Guzzle\Http\Message\Header#58 (3) {
...
}
'access-control-allow-origin' =>
class Guzzle\Http\Message\Header#59 (3) {
...
}
}
}
public $raw_body =>
string(21) "{"message":"success"}"
public $body =>
array(1) {
'message' =>
string(7) "success"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment