You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-97Lines changed: 3 additions & 97 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,7 @@ client = BeeperDesktop(
33
33
access_token=os.environ.get("BEEPER_ACCESS_TOKEN"), # This is the default and can be omitted
34
34
)
35
35
36
-
page = client.chats.search(
37
-
include_muted=True,
38
-
limit=3,
39
-
type="single",
40
-
)
41
-
print(page.items)
36
+
accounts = client.accounts.list()
42
37
```
43
38
44
39
While you can provide a `access_token` keyword argument,
@@ -61,12 +56,7 @@ client = AsyncBeeperDesktop(
61
56
62
57
63
58
asyncdefmain() -> None:
64
-
page =await client.chats.search(
65
-
include_muted=True,
66
-
limit=3,
67
-
type="single",
68
-
)
69
-
print(page.items)
59
+
accounts =await client.accounts.list()
70
60
71
61
72
62
asyncio.run(main())
@@ -98,12 +88,7 @@ async def main() -> None:
98
88
access_token="My Access Token",
99
89
http_client=DefaultAioHttpClient(),
100
90
) as client:
101
-
page =await client.chats.search(
102
-
include_muted=True,
103
-
limit=3,
104
-
type="single",
105
-
)
106
-
print(page.items)
91
+
accounts =await client.accounts.list()
107
92
108
93
109
94
asyncio.run(main())
@@ -118,85 +103,6 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
118
103
119
104
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
120
105
121
-
## Pagination
122
-
123
-
List methods in the Beeper Desktop API are paginated.
124
-
125
-
This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually:
0 commit comments