Skip to content

Commit 671c82f

Browse files
committed
Resolved conflicts
1 parent 4addf50 commit 671c82f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pubnub/pubnub_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,13 +1499,15 @@ def list_files(self, channel: str = None, *, limit: int = None, next: str = None
14991499
15001500
Args:
15011501
channel (str, optional): The channel to list files from.
1502+
limit (int, optional): The maximum number of files to return.
1503+
next (str, optional): The pagination token for the next page of results.
15021504
15031505
Returns:
15041506
ListFiles: A ListFiles object that can be used to execute the request.
15051507
15061508
Example:
15071509
```python
1508-
result = pubnub.list_files(channel="room-1").sync()
1510+
result = pubnub.list_files(channel="room-1", limit=10, next="next_token").sync()
15091511
for file in result.data:
15101512
print(f"File: {file.name}, Size: {file.size}")
15111513
```

0 commit comments

Comments
 (0)