Skip to content

Commit 5fdf1d6

Browse files
chore(internal): codegen related update
1 parent 543bc5b commit 5fdf1d6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ import os
2626
from cloudflare import Cloudflare
2727

2828
client = Cloudflare(
29-
api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted
30-
api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted
29+
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
3130
)
3231

3332
zone = client.zones.create(
@@ -53,8 +52,7 @@ import asyncio
5352
from cloudflare import AsyncCloudflare
5453

5554
client = AsyncCloudflare(
56-
api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted
57-
api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted
55+
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
5856
)
5957

6058

0 commit comments

Comments
 (0)