@@ -140,11 +140,11 @@ from shippo.utils import BackoffStrategy, RetryConfig
140140
141141
142142with Shippo(
143- api_key_header = " <YOUR_API_KEY_HERE>" ,
144143 shippo_api_version = " 2018-02-08" ,
144+ api_key_header = " <YOUR_API_KEY_HERE>" ,
145145) as s_client:
146146
147- res = s_client.addresses.list(,
147+ res = s_client.addresses.list(page = 1 , results = 5 ,
148148 RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ))
149149
150150 assert res is not None
@@ -162,11 +162,11 @@ from shippo.utils import BackoffStrategy, RetryConfig
162162
163163with Shippo(
164164 retry_config = RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ),
165- api_key_header = " <YOUR_API_KEY_HERE>" ,
166165 shippo_api_version = " 2018-02-08" ,
166+ api_key_header = " <YOUR_API_KEY_HERE>" ,
167167) as s_client:
168168
169- res = s_client.addresses.list()
169+ res = s_client.addresses.list(page = 1 , results = 5 )
170170
171171 assert res is not None
172172
@@ -294,8 +294,8 @@ from shippo import Shippo
294294def main ():
295295
296296 with Shippo(
297- api_key_header = " <YOUR_API_KEY_HERE>" ,
298297 shippo_api_version = " 2018-02-08" ,
298+ api_key_header = " <YOUR_API_KEY_HERE>" ,
299299 ) as s_client:
300300 # Rest of application here...
301301
@@ -304,8 +304,8 @@ def main():
304304async def amain ():
305305
306306 async with Shippo(
307- api_key_header = " <YOUR_API_KEY_HERE>" ,
308307 shippo_api_version = " 2018-02-08" ,
308+ api_key_header = " <YOUR_API_KEY_HERE>" ,
309309 ) as s_client:
310310 # Rest of application here...
311311```
0 commit comments