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 @@ -21,8 +21,7 @@ The full API of this library can be found in [api.md](api.md).
2121import Cloudflare from ' cloudflare' ;
2222
2323const client = new Cloudflare ({
24- apiEmail: process .env [' CLOUDFLARE_EMAIL' ], // This is the default and can be omitted
25- apiKey: process .env [' CLOUDFLARE_API_KEY' ], // This is the default and can be omitted
24+ apiToken: process .env [' CLOUDFLARE_API_TOKEN' ], // This is the default and can be omitted
2625});
2726
2827const zone = await client .zones .create ({
@@ -43,8 +42,7 @@ This library includes TypeScript definitions for all request params and response
4342import Cloudflare from ' cloudflare' ;
4443
4544const client = new Cloudflare ({
46- apiEmail: process .env [' CLOUDFLARE_EMAIL' ], // This is the default and can be omitted
47- apiKey: process .env [' CLOUDFLARE_API_KEY' ], // This is the default and can be omitted
45+ apiToken: process .env [' CLOUDFLARE_API_TOKEN' ], // This is the default and can be omitted
4846});
4947
5048const params: Cloudflare .ZoneCreateParams = {
You can’t perform that action at this time.
0 commit comments