diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md new file mode 100644 index 0000000..6039b86 --- /dev/null +++ b/TROUBLESHOOTING.md @@ -0,0 +1,16 @@ +If you can't find a solution below, please open an [issue](https://github.com/sendgrid/php-http-client/issues). + +## Table of Contents + +* [Viewing the Request Body](#request-body) + + +## Viewing the Request Body + +When debugging or testing, it may be useful to examine the raw request body. In the `examples/example.php` file, after your API call use this code to echo out the statuscode, body and headers: + +```php +echo $response->statusCode(); +echo $response->body(); +echo $response->headers(); +```