@@ -129,11 +129,16 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
129129from clerk_backend_api import Clerk
130130
131131
132- with Clerk() as clerk:
132+ with Clerk(
133+ bearer_auth = " <YOUR_BEARER_TOKEN_HERE>" ,
134+ ) as clerk:
133135
134- clerk.miscellaneous.get_public_interstitial( frontend_api_query_parameter = " frontend-api_1a2b3c4d " , frontend_api_query_parameter1 = " pub_1a2b3c4d " , publishable_key = " pub_1a2b3c4d " , proxy_url = " https://mean-orchid.com/ " , domain = " plump-reach.com " , sign_in_url = " https://delicious-costume.org/ " , use_domain_for_script = True )
136+ res = clerk.email_addresses.get( email_address_id = " email_address_id_example " )
135137
136- # Use the SDK ...
138+ assert res is not None
139+
140+ # Handle response
141+ print (res)
137142```
138143
139144</br >
@@ -146,11 +151,16 @@ from clerk_backend_api import Clerk
146151
147152async def main ():
148153
149- async with Clerk() as clerk:
154+ async with Clerk(
155+ bearer_auth = " <YOUR_BEARER_TOKEN_HERE>" ,
156+ ) as clerk:
157+
158+ res = await clerk.email_addresses.get_async(email_address_id = " email_address_id_example" )
150159
151- await clerk.miscellaneous.get_public_interstitial_async( frontend_api_query_parameter = " frontend-api_1a2b3c4d " , frontend_api_query_parameter1 = " pub_1a2b3c4d " , publishable_key = " pub_1a2b3c4d " , proxy_url = " https://mean-orchid.com/ " , domain = " plump-reach.com " , sign_in_url = " https://delicious-costume.org/ " , use_domain_for_script = True )
160+ assert res is not None
152161
153- # Use the SDK ...
162+ # Handle response
163+ print (res)
154164
155165asyncio.run(main())
156166```
@@ -176,7 +186,7 @@ with Clerk(
176186 bearer_auth = " <YOUR_BEARER_TOKEN_HERE>" ,
177187) as clerk:
178188
179- clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " pub_1a2b3c4d " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True )
189+ clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " <value> " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True )
180190
181191 # Use the SDK ...
182192
@@ -489,7 +499,7 @@ from clerk_backend_api.utils import BackoffStrategy, RetryConfig
489499
490500with Clerk() as clerk:
491501
492- clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " pub_1a2b3c4d " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True ,
502+ clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " <value> " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True ,
493503 RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ))
494504
495505 # Use the SDK ...
@@ -506,7 +516,7 @@ with Clerk(
506516 retry_config = RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ),
507517) as clerk:
508518
509- clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " pub_1a2b3c4d " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True )
519+ clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " <value> " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True )
510520
511521 # Use the SDK ...
512522
@@ -578,7 +588,7 @@ with Clerk(
578588 server_url = " https://api.clerk.com/v1" ,
579589) as clerk:
580590
581- clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " pub_1a2b3c4d " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True )
591+ clerk.miscellaneous.get_public_interstitial(frontend_api_query_parameter = " frontend-api_1a2b3c4d" , frontend_api_query_parameter1 = " pub_1a2b3c4d" , publishable_key = " <value> " , proxy_url = " https://mean-orchid.com/" , domain = " plump-reach.com" , sign_in_url = " https://delicious-costume.org/" , use_domain_for_script = True )
582592
583593 # Use the SDK ...
584594
@@ -677,14 +687,18 @@ The `Clerk` class implements the context manager protocol and registers a finali
677687from clerk_backend_api import Clerk
678688def main ():
679689
680- with Clerk() as clerk:
690+ with Clerk(
691+ bearer_auth = " <YOUR_BEARER_TOKEN_HERE>" ,
692+ ) as clerk:
681693 # Rest of application here...
682694
683695
684696# Or when using async:
685697async def amain ():
686698
687- async with Clerk() as clerk:
699+ async with Clerk(
700+ bearer_auth = " <YOUR_BEARER_TOKEN_HERE>" ,
701+ ) as clerk:
688702 # Rest of application here...
689703```
690704<!-- End Resource Management [resource-management] -->
0 commit comments