Skip to content

Commit 97a3dab

Browse files
Merge pull request #30 from OmerAhmedKhan/private-oak-hacktoberfest-documentation
Create troubleshooting file
2 parents 263f6b9 + 9e1b821 commit 97a3dab

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Quick links:
7878
- [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.md#cla)
7979
- [Improvements to the Codebase](https://github.com/sendgrid/python-http-client/blob/master/CONTRIBUTING.mdimprovements_to_the_codebase)
8080

81+
# Troubleshooting
82+
83+
Please see our [troubleshooting guide](https://github.com/sendgrid/python-http-client/blob/master/TROUBLESHOOTING.md) for any issues.
84+
8185
# Thanks
8286

8387
We were inspired by the work done on [birdy](https://github.com/inueni/birdy) and [universalclient](https://github.com/dgreisen/universalclient).

TROUBLESHOOTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
## Table of Contents
3+
* [Viewing the Response Body](#response-body)
4+
5+
<a name="response-body"></a>
6+
## Viewing the Response Body
7+
8+
When debugging or testing, it may be useful to examine the raw request body.
9+
10+
You can do this just after call `response = client.your.api._(param).call.<METHOD>` Where <METHOD> can be `get()`, `post()`, `patch()` and `post()`.
11+
12+
```python
13+
print(response.body)
14+
```

0 commit comments

Comments
 (0)