Skip to content

Commit 0de0dc5

Browse files
knuioquatix
authored andcommitted
Document how to use an API Token instead of Email + API key
1 parent d4bd45c commit 0de0dc5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ Cloudflare.connect(key: key, email: email) do |connection|
6363
end
6464
```
6565

66+
### Using an API Token
67+
68+
```ruby
69+
require 'cloudflare'
70+
71+
token = 'a_generated_api_token'
72+
73+
Cloudflare.connect(token: token) do |connection|
74+
# ...
75+
end
76+
```
77+
6678
## Contributing
6779

6880
1. Fork it

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy