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).
21
21
import Cloudflare from ' cloudflare' ;
22
22
23
23
const 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
26
25
});
27
26
28
27
const zone = await client .zones .create ({
@@ -43,8 +42,7 @@ This library includes TypeScript definitions for all request params and response
43
42
import Cloudflare from ' cloudflare' ;
44
43
45
44
const 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
48
46
});
49
47
50
48
const params: Cloudflare .ZoneCreateParams = {
You can’t perform that action at this time.
0 commit comments