Skip to content

Commit b09a4e4

Browse files
author
Glenn Snyder
committed
including pointer to sample using new Client interface
1 parent 7786d9e commit b09a4e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/get_users.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
users = hub.get_users()
1616

17+
#
18+
# Note: The HubInstance interface does NOT handle paging of results
19+
# but the new Client interface does. See https://github.com/blackducksoftware/hub-rest-api-python/blob/master/examples/client/get_users.py
20+
# for an example of retrieving users using the new Client interface
21+
#
1722
if 'totalCount' in users and users['totalCount'] > 0:
1823
print(json.dumps(users))
1924
else:

0 commit comments

Comments
 (0)