Skip to content

Commit 95859bc

Browse files
committed
add sync client
1 parent 9e3fba8 commit 95859bc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

planet/clients/subscriptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class _SubscriptionsPager(Paged):
137137
"""Navigates pages of messages about subscriptions."""
138138
ITEMS_KEY = 'subscriptions'
139139

140-
params: Dict[str, Union[str, Sequence[str], bool]] = {}
140+
params: Dict[str, Union[str, Sequence[str], bool, int]] = {}
141141
if created is not None:
142142
params['created'] = created
143143
if end_time is not None:

planet/sync/subscriptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __init__(self,
3737
def list_subscriptions(self,
3838
status: Optional[Sequence[str]] = None,
3939
limit: int = 100,
40+
page_size: Optional[int] = None,
4041
created: Optional[str] = None,
4142
end_time: Optional[str] = None,
4243
hosting: Optional[bool] = None,
@@ -80,6 +81,7 @@ def list_subscriptions(self,
8081
updated (str): filter by updated time or interval.
8182
limit (int): limit the number of subscriptions in the
8283
results. When set to 0, no maximum is applied.
84+
page_size (int): number of subscriptions to return per page, default 20.
8385
TODO: user_id
8486
8587
Datetime args (created, end_time, start_time, updated) can either be a
@@ -101,6 +103,7 @@ def list_subscriptions(self,
101103

102104
results = self._client.list_subscriptions(status,
103105
limit,
106+
page_size,
104107
created,
105108
end_time,
106109
hosting,

0 commit comments

Comments
 (0)