Skip to content

Commit b32cf88

Browse files
committed
pagination example
1 parent ac4e427 commit b32cf88

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

example.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55

66
api_url = "https://api.test.cf.springer-sbm.com"
77
admin_user = "admin"
8-
admin_password = "admin"
8+
admin_password = "password"
99

1010
cf = CF(api_url)
1111
cf.login(admin_user, admin_password)
1212

1313
org = cf.search_org("pivotal")
1414
print(org)
15+
16+
services = cf.request('GET', "/v2/services", {"results-per-page": 1})
17+
print(services)
18+
19+
services = cf.request('GET', "https://api.test.cf.springer-sbm.com/v2/services", {"results-per-page": 1})
20+
print(services)
21+

0 commit comments

Comments
 (0)