Skip to content

Commit cf0e43f

Browse files
authored
Merge pull request #22 from clearbit/david-update-docs-re-proxy
update docs to show how you might use a proxy
2 parents 2cc4500 + 343bc2c commit cf0e43f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ If the company can't be found, then `None` will be returned.
4343

4444
See the [documentation](https://clearbit.com/docs#company-api) for more information.
4545

46+
## Proxy Usage
47+
48+
Passing a proxies dictionary allows you to specify proxy servers to pass the requests through given various protocols.
49+
50+
```python
51+
52+
proxies = {
53+
'http': 'http://user:password@proxyserver.tld:8080',
54+
'https': 'https://user:password@proxyserver.tld:8080',
55+
}
56+
57+
response = clearbit.Enrichment.find(email='alex@clearbit.com',proxies=proxies)
58+
```
59+
4660
## Testing
4761

4862
Set the `PYTHONPATH` env var to the current directory to load the library locally:

0 commit comments

Comments
 (0)