Skip to content

Commit d1763c4

Browse files
committed
Added TROUBLESHOOTING + Debug Info
Issue #32
1 parent 8bff396 commit d1763c4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

TROUBLESHOOTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
If you can't find a solution below, please open an [issue](https://github.com/sendgrid/php-http-client/issues).
2+
3+
## Table of Contents
4+
5+
* [Viewing the Request Body](#request-body)
6+
7+
<a name="request-body"></a>
8+
## Viewing the Request Body
9+
10+
When debugging or testing, it may be useful to examine the raw request body to compare against the [documented format](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).
11+
12+
In the `examples/example.php` file, after your API call use this code to echo out the statuscode, body and headers:
13+
14+
```php
15+
echo $response->statusCode();
16+
echo $response->body();
17+
echo $response->headers();
18+
```

0 commit comments

Comments
 (0)