@@ -18,12 +18,7 @@ from agentmail import AgentMail
1818client = AgentMail(
1919 api_key = " YOUR_API_KEY" ,
2020)
21- response = client.inboxes.list()
22- for item in response:
23- yield item
24- # alternatively, you can paginate page-by-page
25- for page in response.iter_pages():
26- yield page
21+ client.inboxes.list()
2722
2823```
2924</dd >
@@ -276,12 +271,7 @@ from agentmail import AgentMail
276271client = AgentMail(
277272 api_key = " YOUR_API_KEY" ,
278273)
279- response = client.pods.list()
280- for item in response:
281- yield item
282- # alternatively, you can paginate page-by-page
283- for page in response.iter_pages():
284- yield page
274+ client.pods.list()
285275
286276```
287277</dd >
@@ -518,12 +508,7 @@ from agentmail import AgentMail
518508client = AgentMail(
519509 api_key = " YOUR_API_KEY" ,
520510)
521- response = client.webhooks.list()
522- for item in response:
523- yield item
524- # alternatively, you can paginate page-by-page
525- for page in response.iter_pages():
526- yield page
511+ client.webhooks.list()
527512
528513```
529514</dd >
@@ -779,12 +764,7 @@ from agentmail import AgentMail
779764client = AgentMail(
780765 api_key = " YOUR_API_KEY" ,
781766)
782- response = client.api_keys.list()
783- for item in response:
784- yield item
785- # alternatively, you can paginate page-by-page
786- for page in response.iter_pages():
787- yield page
767+ client.api_keys.list()
788768
789769```
790770</dd >
@@ -959,12 +939,7 @@ from agentmail import AgentMail
959939client = AgentMail(
960940 api_key = " YOUR_API_KEY" ,
961941)
962- response = client.domains.list()
963- for item in response:
964- yield item
965- # alternatively, you can paginate page-by-page
966- for page in response.iter_pages():
967- yield page
942+ client.domains.list()
968943
969944```
970945</dd >
@@ -1316,12 +1291,7 @@ from agentmail import AgentMail
13161291client = AgentMail(
13171292 api_key = " YOUR_API_KEY" ,
13181293)
1319- response = client.drafts.list()
1320- for item in response:
1321- yield item
1322- # alternatively, you can paginate page-by-page
1323- for page in response.iter_pages():
1324- yield page
1294+ client.drafts.list()
13251295
13261296```
13271297</dd >
@@ -1472,14 +1442,9 @@ from agentmail import AgentMail
14721442client = AgentMail(
14731443 api_key = " YOUR_API_KEY" ,
14741444)
1475- response = client.inboxes.drafts.list(
1445+ client.inboxes.drafts.list(
14761446 inbox_id = " inbox_id" ,
14771447)
1478- for item in response:
1479- yield item
1480- # alternatively, you can paginate page-by-page
1481- for page in response.iter_pages():
1482- yield page
14831448
14841449```
14851450</dd >
@@ -2066,14 +2031,9 @@ from agentmail import AgentMail
20662031client = AgentMail(
20672032 api_key = " YOUR_API_KEY" ,
20682033)
2069- response = client.inboxes.messages.list(
2034+ client.inboxes.messages.list(
20702035 inbox_id = " inbox_id" ,
20712036)
2072- for item in response:
2073- yield item
2074- # alternatively, you can paginate page-by-page
2075- for page in response.iter_pages():
2076- yield page
20772037
20782038```
20792039</dd >
@@ -2807,14 +2767,9 @@ from agentmail import AgentMail
28072767client = AgentMail(
28082768 api_key = " YOUR_API_KEY" ,
28092769)
2810- response = client.inboxes.threads.list(
2770+ client.inboxes.threads.list(
28112771 inbox_id = " inbox_id" ,
28122772)
2813- for item in response:
2814- yield item
2815- # alternatively, you can paginate page-by-page
2816- for page in response.iter_pages():
2817- yield page
28182773
28192774```
28202775</dd >
@@ -3201,14 +3156,9 @@ from agentmail import AgentMail
32013156client = AgentMail(
32023157 api_key = " YOUR_API_KEY" ,
32033158)
3204- response = client.pods.domains.list(
3159+ client.pods.domains.list(
32053160 pod_id = " pod_id" ,
32063161)
3207- for item in response:
3208- yield item
3209- # alternatively, you can paginate page-by-page
3210- for page in response.iter_pages():
3211- yield page
32123162
32133163```
32143164</dd >
@@ -3450,14 +3400,9 @@ from agentmail import AgentMail
34503400client = AgentMail(
34513401 api_key = " YOUR_API_KEY" ,
34523402)
3453- response = client.pods.drafts.list(
3403+ client.pods.drafts.list(
34543404 pod_id = " pod_id" ,
34553405)
3456- for item in response:
3457- yield item
3458- # alternatively, you can paginate page-by-page
3459- for page in response.iter_pages():
3460- yield page
34613406
34623407```
34633408</dd >
@@ -3625,14 +3570,9 @@ from agentmail import AgentMail
36253570client = AgentMail(
36263571 api_key = " YOUR_API_KEY" ,
36273572)
3628- response = client.pods.inboxes.list(
3573+ client.pods.inboxes.list(
36293574 pod_id = " pod_id" ,
36303575)
3631- for item in response:
3632- yield item
3633- # alternatively, you can paginate page-by-page
3634- for page in response.iter_pages():
3635- yield page
36363576
36373577```
36383578</dd >
@@ -3953,14 +3893,9 @@ from agentmail import AgentMail
39533893client = AgentMail(
39543894 api_key = " YOUR_API_KEY" ,
39553895)
3956- response = client.pods.threads.list(
3896+ client.pods.threads.list(
39573897 pod_id = " pod_id" ,
39583898)
3959- for item in response:
3960- yield item
3961- # alternatively, you can paginate page-by-page
3962- for page in response.iter_pages():
3963- yield page
39643899
39653900```
39663901</dd >
@@ -4202,12 +4137,7 @@ from agentmail import AgentMail
42024137client = AgentMail(
42034138 api_key = " YOUR_API_KEY" ,
42044139)
4205- response = client.threads.list()
4206- for item in response:
4207- yield item
4208- # alternatively, you can paginate page-by-page
4209- for page in response.iter_pages():
4210- yield page
4140+ client.threads.list()
42114141
42124142```
42134143</dd >
0 commit comments