@@ -18,11 +18,7 @@ Delete an account
1818from os import getenv
1919from sideko_stripe import Stripe
2020
21- client = Stripe(
22- username = getenv(" API_USERNAME" ),
23- password = getenv(" API_PASSWORD" ),
24- token = getenv(" API_TOKEN" ),
25- )
21+ client = Stripe(token = getenv(" API_TOKEN" ))
2622res = client.account.delete(account = " string" )
2723```
2824
@@ -32,11 +28,7 @@ res = client.account.delete(account="string")
3228from os import getenv
3329from sideko_stripe import AsyncStripe
3430
35- client = AsyncStripe(
36- username = getenv(" API_USERNAME" ),
37- password = getenv(" API_PASSWORD" ),
38- token = getenv(" API_TOKEN" ),
39- )
31+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
4032res = await client.account.delete(account = " string" )
4133```
4234
@@ -53,11 +45,7 @@ Retrieve account
5345from os import getenv
5446from sideko_stripe import Stripe
5547
56- client = Stripe(
57- username = getenv(" API_USERNAME" ),
58- password = getenv(" API_PASSWORD" ),
59- token = getenv(" API_TOKEN" ),
60- )
48+ client = Stripe(token = getenv(" API_TOKEN" ))
6149res = client.account.details()
6250```
6351
@@ -67,11 +55,7 @@ res = client.account.details()
6755from os import getenv
6856from sideko_stripe import AsyncStripe
6957
70- client = AsyncStripe(
71- username = getenv(" API_USERNAME" ),
72- password = getenv(" API_PASSWORD" ),
73- token = getenv(" API_TOKEN" ),
74- )
58+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
7559res = await client.account.details()
7660```
7761
@@ -88,11 +72,7 @@ List all connected accounts
8872from os import getenv
8973from sideko_stripe import Stripe
9074
91- client = Stripe(
92- username = getenv(" API_USERNAME" ),
93- password = getenv(" API_PASSWORD" ),
94- token = getenv(" API_TOKEN" ),
95- )
75+ client = Stripe(token = getenv(" API_TOKEN" ))
9676res = client.account.list()
9777```
9878
@@ -102,11 +82,7 @@ res = client.account.list()
10282from os import getenv
10383from sideko_stripe import AsyncStripe
10484
105- client = AsyncStripe(
106- username = getenv(" API_USERNAME" ),
107- password = getenv(" API_PASSWORD" ),
108- token = getenv(" API_TOKEN" ),
109- )
85+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
11086res = await client.account.list()
11187```
11288
@@ -123,11 +99,7 @@ Retrieve account
12399from os import getenv
124100from sideko_stripe import Stripe
125101
126- client = Stripe(
127- username = getenv(" API_USERNAME" ),
128- password = getenv(" API_PASSWORD" ),
129- token = getenv(" API_TOKEN" ),
130- )
102+ client = Stripe(token = getenv(" API_TOKEN" ))
131103res = client.account.get(account = " string" )
132104```
133105
@@ -137,11 +109,7 @@ res = client.account.get(account="string")
137109from os import getenv
138110from sideko_stripe import AsyncStripe
139111
140- client = AsyncStripe(
141- username = getenv(" API_USERNAME" ),
142- password = getenv(" API_PASSWORD" ),
143- token = getenv(" API_TOKEN" ),
144- )
112+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
145113res = await client.account.get(account = " string" )
146114```
147115
@@ -163,11 +131,7 @@ You can prefill any information on the account.</p>
163131from os import getenv
164132from sideko_stripe import Stripe
165133
166- client = Stripe(
167- username = getenv(" API_USERNAME" ),
168- password = getenv(" API_PASSWORD" ),
169- token = getenv(" API_TOKEN" ),
170- )
134+ client = Stripe(token = getenv(" API_TOKEN" ))
171135res = client.account.create()
172136```
173137
@@ -177,11 +141,7 @@ res = client.account.create()
177141from os import getenv
178142from sideko_stripe import AsyncStripe
179143
180- client = AsyncStripe(
181- username = getenv(" API_USERNAME" ),
182- password = getenv(" API_PASSWORD" ),
183- token = getenv(" API_TOKEN" ),
184- )
144+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
185145res = await client.account.create()
186146```
187147
@@ -210,11 +170,7 @@ after which some properties can no longer be updated.</p>
210170from os import getenv
211171from sideko_stripe import Stripe
212172
213- client = Stripe(
214- username = getenv(" API_USERNAME" ),
215- password = getenv(" API_PASSWORD" ),
216- token = getenv(" API_TOKEN" ),
217- )
173+ client = Stripe(token = getenv(" API_TOKEN" ))
218174res = client.account.update(account = " string" )
219175```
220176
@@ -224,11 +180,7 @@ res = client.account.update(account="string")
224180from os import getenv
225181from sideko_stripe import AsyncStripe
226182
227- client = AsyncStripe(
228- username = getenv(" API_USERNAME" ),
229- password = getenv(" API_PASSWORD" ),
230- token = getenv(" API_TOKEN" ),
231- )
183+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
232184res = await client.account.update(account = " string" )
233185```
234186
@@ -247,11 +199,7 @@ Create a login link
247199from os import getenv
248200from sideko_stripe import Stripe
249201
250- client = Stripe(
251- username = getenv(" API_USERNAME" ),
252- password = getenv(" API_PASSWORD" ),
253- token = getenv(" API_TOKEN" ),
254- )
202+ client = Stripe(token = getenv(" API_TOKEN" ))
255203res = client.account.create_login_link(account = " string" )
256204```
257205
@@ -261,11 +209,7 @@ res = client.account.create_login_link(account="string")
261209from os import getenv
262210from sideko_stripe import AsyncStripe
263211
264- client = AsyncStripe(
265- username = getenv(" API_USERNAME" ),
266- password = getenv(" API_PASSWORD" ),
267- token = getenv(" API_TOKEN" ),
268- )
212+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
269213res = await client.account.create_login_link(account = " string" )
270214```
271215
@@ -284,11 +228,7 @@ Reject an account
284228from os import getenv
285229from sideko_stripe import Stripe
286230
287- client = Stripe(
288- username = getenv(" API_USERNAME" ),
289- password = getenv(" API_PASSWORD" ),
290- token = getenv(" API_TOKEN" ),
291- )
231+ client = Stripe(token = getenv(" API_TOKEN" ))
292232res = client.account.reject(account = " string" , reason = " string" )
293233```
294234
@@ -298,10 +238,6 @@ res = client.account.reject(account="string", reason="string")
298238from os import getenv
299239from sideko_stripe import AsyncStripe
300240
301- client = AsyncStripe(
302- username = getenv(" API_USERNAME" ),
303- password = getenv(" API_PASSWORD" ),
304- token = getenv(" API_TOKEN" ),
305- )
241+ client = AsyncStripe(token = getenv(" API_TOKEN" ))
306242res = await client.account.reject(account = " string" , reason = " string" )
307243```
0 commit comments