8000 [pull] main from twilio:main by pull[bot] · Pull Request #28 · mikeyhodl/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

[pull] main from twilio:main #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 63 commits into from
Jul 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
086bc6b
[Librarian] Regenerated @ 2e932f6c59e0f9fb6cb96952802e5ebedd83b6f0 18…
twilio-dx Oct 24, 2024
19e54f9
Release 9.3.5
twilio-dx Oct 24, 2024
efa2803
chore: removing unavailable references from init files (#818)
tiwarishubham635 Oct 25, 2024
15ee3e6
[Librarian] Regenerated @ 2e932f6c59e0f9fb6cb96952802e5ebedd83b6f0 18…
twilio-dx Oct 25, 2024
3fc2d25
Release 9.3.6
twilio-dx Oct 25, 2024
5aa42dc
chore: use older verison of aiohttp_retry (#819)
sbansla Oct 28, 2024
4f1e7d2
[Librarian] Regenerated @ 51e40434baa37a97b298d416220c6de10d9698c4 1a…
twilio-dx Nov 15, 2024
ce5ce5d
Release 9.3.7
twilio-dx Nov 15, 2024
bae3eca
[Librarian] Regenerated @ 45fa5159053e1c1f62f6d613f3b67a9239b43a5f 25…
twilio-dx Dec 5, 2024
fb53889
Release 9.3.8
twilio-dx Dec 5, 2024
6e78c78
feat: Organizations Api uptake for twilio-python (#815)
AsabuHere Dec 12, 2024
0b8aab4
feat: Docs update and examples for organization api uptake and public…
AsabuHere Dec 12, 2024
ec1b6bf
[Librarian] Regenerated @ ca4a5892d2b6a6161860845fe1152af07920bc07 40…
twilio-dx Dec 12, 2024
e256e92
Release 9.4.0
twilio-dx Dec 12, 2024
541b312
chore: fix orgs api changes (#826)
tiwarishubham635 Dec 13, 2024
0b16947
Update __init__.py (#827)
AsabuHere Dec 13, 2024
38ab9a4
[Librarian] Regenerated @ b65acba5c4232d15904620906c50336624531359 f2…
twilio-dx Dec 13, 2024
f61eb7c
Release 9.4.1
twilio-dx Dec 13, 2024
6d40feb
chore: remove test for 3.7 (#832)
tiwarishubham635 Jan 9, 2025
45523ff
[Librarian] Regenerated @ 0a245f5931e0ff292c12b643839bbb9a1b3831e3 47…
twilio-dx Jan 9, 2025
5de6bde
Release 9.4.2
twilio-dx Jan 9, 2025
6a576ae
[Librarian] Regenerated @ d9b0f7b0297f064eec2f219b29fd4193559c54f3 40…
twilio-dx Jan 13, 2025
70d50d2
Release 9.4.3
twilio-dx Jan 13, 2025
73a1e2b
chore: created bug report issue template (#833)
sbansla Jan 16, 2025
513743f
chore: enable newer versions of aiohttp-retry (#837)
tiwarishubham635 Jan 24, 2025
8e1fdef
chore: update httpclient (#834)
manisha1997 Jan 28, 2025
ab846b4
fix: requirements.txt to reduce vulnerabilities (#822)
twilio-product-security Jan 28, 2025
338cbb0
[Librarian] Regenerated @ a7caf52aaea6fe6c7b30170a468564bcea4f0362 13…
twilio-dx Jan 28, 2025
ffc0aa1
Release 9.4.4
twilio-dx Jan 28, 2025
d120aff
[Librarian] Regenerated @ 6b85410bb6ecf3aa579d1fa442c7bb74c62cf6f0 ae…
twilio-dx Feb 11, 2025
424a9ba
Release 9.4.5
twilio-dx Feb 11, 2025
fb163f4
chore: issue 841 (#842)
manisha1997 Feb 12, 2025
17cbe04
[Librarian] Regenerated @ 125dc871b4170bce0faca169f8a588f6ff356a88 0c…
twilio-dx Feb 20, 2025
71fb731
Release 9.4.6
twilio-dx Feb 20, 2025
58cb0e6
fix: AssistantsBase import (#847)
sbansla Feb 27, 2025
7321899
[Librarian] Regenerated @ 1565ca6ea5fc25da35893aea0bc70b60053b86b8 d9…
twilio-dx Mar 11, 2025
317a5bb
Release 9.5.0
twilio-dx Mar 11, 2025
518dc8a
[Librarian] Regenerated @ 160660ccc2266b2b6f15f8e8291a4b07d233dc21 81…
twilio-dx Mar 20, 2025
bf3e6da
Release 9.5.1
twilio-dx Mar 20, 2025
e57d156
[Librarian] Regenerated @ e229c81d086276743ccce5ac8e1e19c4ad654adb 19…
twilio-dx Apr 7, 2025
a2b5324
Release 9.5.2
twilio-dx Apr 7, 2025
e44db6b
docs: update pagination usage in README.md (#855)
manisha1997 Apr 10, 2025
6979620
chore: fix oauth examples (#858)
tiwarishubham635 May 5, 2025
807f380
fix: Fix deprecated/invalid config in `setup.cfg` (#853)
abravalheri May 5, 2025
cdd9857
fix: Timezone changes in toke_auth_strategy.py (#848)
Pablo2113 May 5, 2025
e6b5615
[Librarian] Regenerated @ 73b691d4309bbf652c00c8e81516e936534d2117 e3…
twilio-dx May 5, 2025
c5b9ee0
Release 9.6.0
twilio-dx May 5, 2025
7508e25
[Librarian] Regenerated @ be1009287706f9668165e2c57e337a331cc8e657 21…
twilio-dx May 13, 2025
ce65814
Release 9.6.1
twilio-dx May 13, 2025
da6aa6b
chore: update iam token endpoint (#862)
manisha1997 May 14, 2025
a72ada6
[Librarian] Regenerated @ 8d92bd85f8ef40c37285966629e30e5c7cb9312b e6…
twilio-dx May 29, 2025
dc10442
Release 9.6.2
twilio-dx May 29, 2025
109efef
Remove knowledge files (#869)
krishnakalluri Jun 12, 2025
439e4ad
[Librarian] Regenerated @ 330069c1eddda7f148dbcd8b26aaeec9c22b3409 38…
twilio-dx Jun 12, 2025
a86b2e3
Release 9.6.3
twilio-dx Jun 12, 2025
2f3de8f
chore: remove knowledge domain (#870)
tiwarishubham635 Jun 12, 2025
6543c4a
chore: support Python 3.13 (#872)
tiwarishubham635 Jun 16, 2025
ee0714c
chore: Remove references to microvisor (#865)
akhani18 Jun 18, 2025
f9b4ce1
[Librarian] Regenerated @ d122b05026327019e18cb5763c557a68138cc2c8 0e…
twilio-dx Jul 3, 2025
f53fb96
Release 9.6.4
twilio-dx Jul 3, 2025
f7de801
fix: delete non existing import in rest/preview (#874)
lopenchi Jul 4, 2025
e56aa28
[Librarian] Regenerated @ 39bbd47c92a659f8a7464cedcc75b92c7ba69773 f5…
twilio-dx Jul 10, 2025
1f43fce
Release 9.6.5
twilio-dx Jul 10, 2025
File filter < 8000 div class="SelectMenu-modal">

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update pagination usage in README.md (twilio#855)
* chore: update README.md

* chore: fix page_size snakecase

---------

Co-authored-by: Shubham <tiwarishubham635@gmail.com>
  • Loading branch information
manisha1997 and tiwarishubham635 authored Apr 10, 2025
commit e44db6bd285b0556bfd17f5a8b84862cf9521df9
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ The library automatically handles paging for you. Collections, such as `calls` a

`list` eagerly fetches all records and returns them as a list, whereas `stream` returns an iterator and lazily retrieves pages of records as you iterate over the collection. You can also page manually using the `page` method.

`page_size` as a parameter is used to tell how many records should we get in every page and `limit` parameter is used to limit the max number of records we want to fetch.

#### Use the `list` method

```python
Expand All @@ -206,6 +208,21 @@ for sms in client.messages.list():
print(sms.to)
```

```python
client.messages.list(limit=20, page_size=20)
```
This will make 1 call that will fetch 20 records from backend service.

```python
client.messages.list(limit=20, page_size=10)
```
This will make 2 calls that will fetch 10 records each from backend service.

```python
client.messages.list(limit=20, page_size=100)
```
This will make 1 call which will fetch 100 records but user will get only 20 records.

### Asynchronous API Requests

By default, the Twilio Client will make synchronous requests to the Twilio API. To allow for asynchronous, non-blocking requests, we've included an optional asynchronous HTTP client. When used with the Client and the accompanying `*_async` methods, requests made to the Twilio API will be performed asynchronously.
Expand Down
Loading
0