Skip to content

Commit 58ee4b8

Browse files
authored
Merge pull request #29 from clearbit/td-prospector
update examples
2 parents 5c1e9b0 + 3a4c2dd commit 58ee4b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clearbit/examples/prospector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import clearbit
22

3-
people = clearbit.Prospector.search(domain='clearbit.com')
3+
response = clearbit.Prospector.search(domain='clearbit.com')
44

5-
for person in people:
5+
for person in response['results']:
66
print(person['name']['fullName'])
77
print(person.email)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import clearbit
22

3-
people = clearbit.Prospector.search(domain='clearbit.com', roles={'sales', 'marketing'})
3+
response = clearbit.Prospector.search(domain='clearbit.com', roles={'sales', 'marketing'})
44

5-
for person in people:
5+
for person in response['results']:
66
print(person['name']['fullName'])
77
print(person.email)

0 commit comments

Comments
 (0)