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 retreived from either the users exported shell environment variables or the .cloudflare.cfg or ~/.cloudflare.cfg or ~/.cloudflare/cloudflare.cfg files, in that order.
114
131
115
132
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.
These are optional environment variables; however, they do override the values set within a configuration file.
143
+
125
144
### Using configuration file to store email and keys
126
145
127
146
```bash
@@ -134,7 +153,12 @@ extras =
134
153
$
135
154
```
136
155
137
-
The *CF_API_CERTKEY* or *certtoken* values are used for the Origin-CA */certificates* API calls. At the time of being, you must leave extras in the configuration, the value can be left blank.
156
+
The *CF_API_CERTKEY* or *certtoken* values are used for the Origin-CA */certificates* API calls.
157
+
You can leave *certtoken* in the configuration with a blank value (or omit the option variable fully).
158
+
159
+
The *extras* values are used when adding API calls outside of the core codebase.
160
+
Technically, this is only useful for internal testing within CloudFlare.
161
+
You can leave *extras* in the configuration with a blank value (or omit the option variable fully).
138
162
139
163
## Included example code
140
164
@@ -374,7 +398,7 @@ Extra API calls can be added via the configuration file
0 commit comments