Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit f48ab53

Browse files
authored
Merge pull request #58 from dargor/fix_typos
Fix some typos.
2 parents fd6464e + 63a4159 commit f48ab53

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A full list is provided below.
4040

4141
## Example code
4242

43-
All example code is available on GitHub (see [package](https://github.com/cloudflare/python-cloudflare) in the [examples](https://github.com/cloudflare/python-cloudflare/tree/master/examples) folder.
43+
All example code is available on GitHub (see [package](https://github.com/cloudflare/python-cloudflare) in the [examples](https://github.com/cloudflare/python-cloudflare/tree/master/examples) folder).
4444

4545
## Blog
4646

@@ -91,8 +91,8 @@ if __name__ == '__main__':
9191
main()
9292
```
9393

94-
In order to query more than a single page of zones, we would have to use the raw mode (decribed more below).
95-
We can loop over many get calls and pass the page paramater to facilitate the paging.
94+
In order to query more than a single page of zones, we would have to use the raw mode (described more below).
95+
We can loop over many get calls and pass the page parameter to facilitate the paging.
9696

9797
Raw mode is only needed when a get request has the possibility of returning many items.
9898

@@ -170,7 +170,7 @@ if __name__ == '__main__':
170170

171171
## Providing Cloudflare Username and API Key
172172

173-
When you create a **CloudFlare** class you can pass up to four paramaters.
173+
When you create a **CloudFlare** class you can pass up to four parameters.
174174

175175
* Account email
176176
* Account API key
@@ -193,7 +193,7 @@ import CloudFlare
193193
cf = CloudFlare.CloudFlare(email='user@example.com', token='00000000000000000000000000000000', certtoken='v1.0-...')
194194
```
195195

196-
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.
196+
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.
197197

198198
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.
199199

@@ -313,7 +313,7 @@ import CloudFlare
313313
The other raised response is **CloudFlareInternalError** which can happen when calling an invalid method.
314314

315315
In some cases more than one error is returned. In this case the return value **e** is also an array.
316-
You can itterate over that array to see the additional error.
316+
You can iterate over that array to see the additional error.
317317

318318
```python
319319
import sys
@@ -432,7 +432,7 @@ $ cli4 [-V|--version] [-h|--help] [-v|--verbose] [-q|--quiet] [-j|--json] [-y|--
432432

433433
```
434434

435-
### CLI paramaters for POST/PUT/PATCH
435+
### CLI parameters for POST/PUT/PATCH
436436

437437
For API calls that need to pass data or parameters there is various formats to use.
438438

@@ -551,7 +551,7 @@ $
551551

552552
### Cloudflare CA CLI examples
553553

554-
Here's some Cloudflare CA examples. Note the need of the zone_id= paramater with the basic **/certificates** call.
554+
Here's some Cloudflare CA examples. Note the need of the zone_id= parameter with the basic **/certificates** call.
555555

556556
```bash
557557
$ cli4 /zones/:example.com | jq -c '.|{"id":.id,"name":.name}'
@@ -852,7 +852,7 @@ $ cli4 /zones/:example.com/workers/routes
852852
$
853853
```
854854

855-
With that script added to the zone and the route added, we can now see the the website has been modified because of the Cloudflare Worker.
855+
With that script added to the zone and the route added, we can now see the website has been modified because of the Cloudflare Worker.
856856

857857
```
858858
$ curl -sS https://example.com/ | fgrep '<body'

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Example code
5353
All example code is available on GitHub (see
5454
`package <https://github.com/cloudflare/python-cloudflare>`__ in the
5555
`examples <https://github.com/cloudflare/python-cloudflare/tree/master/examples>`__
56-
folder.
56+
folder).
5757

5858
Blog
5959
----
@@ -113,7 +113,7 @@ the zones. Lets also query 100 zones.
113113
114114
In order to query more than a single page of zones, we would have to use
115115
the raw mode (decribed more below). We can loop over many get calls and
116-
pass the page paramater to facilitate the paging.
116+
pass the page parameter to facilitate the paging.
117117

118118
Raw mode is only needed when a get request has the possibility of
119119
returning many items.
@@ -194,7 +194,7 @@ Providing Cloudflare Username and API Key
194194
-----------------------------------------
195195

196196
When you create a **CloudFlare** class you can pass up to four
197-
paramaters.
197+
parameters.
198198

199199
- Account email
200200
- Account API key
@@ -218,7 +218,7 @@ paramaters.
218218
cf = CloudFlare.CloudFlare(email='user@example.com', token='00000000000000000000000000000000', certtoken='v1.0-...')
219219
220220
If the account email and API key are not passed when you create the
221-
class, then they are retreived from either the users exported shell
221+
class, then they are retrieved from either the users exported shell
222222
environment variables or the .cloudflare.cfg or ~/.cloudflare.cfg or
223223
~/.cloudflare/cloudflare.cfg files, in that order.
224224

@@ -354,7 +354,7 @@ The other raised response is **CloudFlareInternalError** which can
354354
happen when calling an invalid method.
355355

356356
In some cases more than one error is returned. In this case the return
357-
value **e** is also an array. You can itterate over that array to see
357+
value **e** is also an array. You can iterate over that array to see
358358
the additional error.
359359

360360
.. code:: python
@@ -481,7 +481,7 @@ convert domain names on-the-fly into zone\_identifier's.
481481
482482
$ cli4 [-V|--version] [-h|--help] [-v|--verbose] [-q|--quiet] [-j|--json] [-y|--yaml] [-r|--raw] [-d|--dump] [--get|--patch|--post|--put|--delete] [item=value ...] /command...
483483
484-
CLI paramaters for POST/PUT/PATCH
484+
CLI parameters for POST/PUT/PATCH
485485
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
486486

487487
For API calls that need to pass data or parameters there is various
@@ -614,7 +614,7 @@ Cloudflare CA CLI examples
614614
~~~~~~~~~~~~~~~~~~~~~~~~~~
615615

616616
Here's some Cloudflare CA examples. Note the need of the zone\_id=
617-
paramater with the basic **/certificates** call.
617+
parameter with the basic **/certificates** call.
618618

619619
.. code:: bash
620620
@@ -936,7 +936,7 @@ Next step is to make sure a route is added for that script on that zone.
936936
$
937937

938938
With that script added to the zone and the route added, we can now see
939-
the the website has been modified because of the Cloudflare Worker.
939+
the website has been modified because of the Cloudflare Worker.
940940

941941
::
942942

0 commit comments

Comments
 (0)