File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ import os
26
26
from cloudflare import Cloudflare
27
27
28
28
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
31
30
)
32
31
33
32
zone = client.zones.create(
@@ -53,8 +52,7 @@ import asyncio
53
52
from cloudflare import AsyncCloudflare
54
53
55
54
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
58
56
)
59
57
60
58
You can’t perform that action at this time.
0 commit comments