Skip to content

Commit 69aeb65

Browse files
author
Craig O'Shannessy
committed
Fixed persons.py example to use the new OOClient update
1 parent 667fd4b commit 69aeb65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/persons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
22
sys.path.append('..')
3-
from pipedrive.client import *
3+
from pipedrive.ooclient import *
44
from collections import Counter
5-
client = Client() # setup in pipedrive_settings.json
5+
client = OOClient() # setup in pipedrive_settings.json
66

77
# Load up to 5000 people, with automatic pagination
88
persons = client.get_persons(limit=5000)
@@ -62,7 +62,7 @@
6262
# Report on the first 5 using convenience methods (org_name and email_address), can also include custom fields like person.admin)
6363
print("{0:<10} {1:<40} {2:<45} {3:<45}".format("Person ID#","Org","Name","Email"))
6464
print("{0:<10} {1:<40} {2:<45} {3:<45}".format("=========","==========","==========","=========="))
65-
for person in persons[0:5]:
65+
for person in persons[0:50]:
6666
print("{0:<10} {1:<40.40} {2:<45.45} {3:<45}".format(person.id,person.org_name,person.name,person.email_address))
6767
# print("{0:<10} {1:<40.40} {2:<45.45} {3:<45}".format(str(person.id),str(org_name),str(person.name),str(person.email_address),str(person.admin),str(person.has_app_installed)))
6868

0 commit comments

Comments
 (0)