Skip to content

Commit 6bcaa57

Browse files
feat: clean up environment call outs
1 parent 946f1e7 commit 6bcaa57

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
@@ -21,8 +21,7 @@ The full API of this library can be found in [api.md](api.md).
2121
import Cloudflare from 'cloudflare';
2222

2323
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
2625
});
2726

2827
const zone = await client.zones.create({
@@ -43,8 +42,7 @@ This library includes TypeScript definitions for all request params and response
4342
import Cloudflare from 'cloudflare';
4443

4544
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
4846
});
4947

5048
const params: Cloudflare.ZoneCreateParams = {

0 commit comments

Comments
 (0)