@@ -52,24 +52,24 @@ pip install -e fullcontact-python-client
52
52
** PersonClient**
53
53
[ PersonClient] ( #personclient ) can be initialized and used as below.
54
54
``` python
55
- import os
56
55
from fullcontact import PersonClient
57
56
58
- person_client = PersonClient(os.environ.get( ' FULLCONTACT_API_KEY ' ) )
57
+ person_client = PersonClient(" <your_fullcontact_api_key> " )
59
58
person_response
= person_client.enrich(
email = " [email protected] " )
60
59
```
60
+
61
61
More examples for [ PersonClient] ( #personclient ) usage can be found in [ Examples] ( #personclient-1 ) section.
62
62
63
63
** CompanyClient**
64
64
[ CompanyClient] ( #companyclient ) can be initialized and used as below.
65
65
``` python
66
- import os
67
66
from fullcontact import CompanyClient
68
67
69
- company_client = CompanyClient(os.environ.get( ' FULLCONTACT_API_KEY ' ) )
68
+ company_client = CompanyClient(" <your_fullcontact_api_key> " )
70
69
company_enrich_response = company_client.enrich(domain = " fullcontact.com" )
71
70
company_search_response = company_client.search(companyName = " fullcontact" )
72
71
```
72
+
73
73
More examples for [ CompanyClient] ( #companyclient ) usage can be found in [ Examples] ( #companyclient-1 ) section.
74
74
75
75
# PersonClient
@@ -271,6 +271,19 @@ For details on Future objects, please refer: https://docs.python.org/3/library/c
271
271
## PersonClient
272
272
* ** Initialization**
273
273
``` python
274
+ from fullcontact import PersonClient
275
+
276
+ person_client = PersonClient(" q4pKoF4fRNk0WxfUn4S3vcKLJGgrXxGQ" )
277
+ ```
278
+
279
+ You can also export the FullContact API key as an environment variable and then use it in the code.
280
+
281
+ Export it in terminal:
282
+ ``` bash
283
+ export FULLCONTACT_API_KEY=" q4pKoF4fRNk0WxfUn4S3vcKLJGgrXxGQ"
284
+ ```
285
+ Then use it in the code:
286
+ ``` python
274
287
import os
275
288
from fullcontact import PersonClient
276
289
@@ -394,6 +407,19 @@ for future in concurrent.futures.as_completed(futures):
394
407
## CompanyClient
395
408
* ** Initialization**
396
409
``` python
410
+ from fullcontact import CompanyClient
411
+
412
+ company_client = CompanyClient(" q4pKoF4fRNk0WxfUn4S3vcKLJGgrXxGQ" )
413
+ ```
414
+
415
+ You can also export the FullContact API key as an environment variable and then use it in the code.
416
+
417
+ Export it in terminal:
418
+ ``` bash
419
+ export FULLCONTACT_API_KEY=" q4pKoF4fRNk0WxfUn4S3vcKLJGgrXxGQ"
420
+ ```
421
+ Then use it in the code:
422
+ ``` python
397
423
import os
398
424
from fullcontact import CompanyClient
399
425
0 commit comments