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
2626from cloudflare import Cloudflare
2727
2828client = 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
3332zone = client.zones.create(
@@ -53,8 +52,7 @@ import asyncio
5352from cloudflare import AsyncCloudflare
5453
5554client = 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
You can’t perform that action at this time.
0 commit comments