You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the account email and API key are not passed when you create the class, then they are retrieved from either the users exported shell environment variables or the .cloudflare.cfg or ~/.cloudflare.cfg or ~/.cloudflare/cloudflare.cfg files, in that order.
197
200
201
+
If you're using an API Token, any `cloudflare.cfg` file must not contain an `email` attribute and the `CF_API_EMAIL` environment variable must be unset, otherwise the token will be treated as a key and will throw an error.
202
+
198
203
There is one call that presently doesn't need any email or token certification (the */ips* call); hence you can test without any values saved away.
199
204
200
205
### Using shell environment variables
201
206
```bash
202
-
$ export CF_API_EMAIL='user@example.com'
207
+
$ export CF_API_EMAIL='user@example.com'# Do not set if using an API Token
0 commit comments