diff options
| author | Jeff Carr <[email protected]> | 2023-12-20 05:58:33 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-20 05:58:33 -0600 |
| commit | 85b9a036c289fe840e69e1852866f429b87cf63e (patch) | |
| tree | eb18f693027cd220f71c0fb015a67346d82a37cc /examples/cloudflare/curl.sh | |
| parent | 87ab9a958d9eb9f4db35d5c9f9ce923df3132dad (diff) | |
code moved to the cloudflare package
use the cloudflare package
add a protobuf attempt
better change detection, but formatting is broken
don't redraw widgets if they are not visible
create new dns entry worked
attempting a DNS RR create
attempt a create API call
use cloudflare recommended ENV vars
turn off debugging
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'examples/cloudflare/curl.sh')
| -rwxr-xr-x[-rw-r--r--] | examples/cloudflare/curl.sh | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/examples/cloudflare/curl.sh b/examples/cloudflare/curl.sh index ec8c014..1edd53e 100644..100755 --- a/examples/cloudflare/curl.sh +++ b/examples/cloudflare/curl.sh @@ -1,3 +1,28 @@ -curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \ - -H "Authorization: Bearer AAAPutYourTokenInHereSoYouCanTestItL5Cl3" \ - -H "Content-Type:application/json" +#curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \ +# -H "Authorization: Bearer AAAPutYourTokenInHereSoYouCanTestItL5Cl3" \ +# -H "Content-Type:application/json" + +# https://api.cloudflare.com/client/v4/zones/27b900d9e05cfb9f3a64fecff2497f90/dns_records +# +# { +# "comment": "WIT DNS Control Panel", +# "content": "2001:4860:4860::8888", +# "name": "www", +# "proxied": false, +# "ttl": 3600, +# "type": "AAAA" +#} + +curl --request POST \ + --url https://api.cloudflare.com/client/v4/zones/27b900d9e05cfb9f3a64fecff2497f90/dns_records \ + --header 'Content-Type: application/json' \ + --header 'X-Auth-Key: e08806ad85ef97aebaacd2d7fa462a7d417a7x' \ + --header 'X-Auth-Email: [email protected]' \ + --data '{ + "comment": "WIT DNS Control Panel", + "content": "2001:4860:4860::5555", + "name": "www5", + "proxied": false, + "ttl": 3600, + "type": "AAAA" +}' |
