cloudflare 获取api key, email, accountId等,在服务端后台进行参数配置,以及在宝塔的配置等 登录cloudflare账号 1.访问:https://cloudflare.com/, 注册登录账号 2.登录后,在url中,即可获取账号id(accountId) 譬如,我的accountId为:77fd9076a9b2f12953640f54c3dea825 ...
获取Zoneid 和 API 点进在 cloudflare 解析的域名,滚动到下方,右边可复制区域 ID (也就是 Zone id,CF 把每个域名成为 Zone)。 然后获取 API Key:先点击上图的 2,然后如下图: 确定创建令牌,然后复制,后面会用到。 API 令牌应该单次使用,不应该保存到某个文件中然后后续其他场景重复使用。API 令牌如果泄露可...
然后在 API Keys 标签下申请新的 API Key 去Settings 查看 smtp 设置 第三步 Gmail 添加使用 Resend 服务的邮箱,找到 Settings -> Accounts and Import -> 在 Send mail as 中点击 Add another email address:填入名字和用于发送邮件的账号 填入Resend smtp 服务信息,Username 固定填 resend,Password 填上面获取...
(_apiKey); TurnstileChallengePage captcha = new TurnstileChallengePage(); captcha.SetSiteKey(param.SiteKey); captcha.SetUrl(param.PageUrl); captcha.SetData(param.Data); captcha.SetPageData(param.PageData); captcha.SetAction(param.Action); captcha.SetUserAgent(param.UserAgent); var captchaId = ...
token='your_api_key' ) ``` 在这里,你需要将`your_email@example.com`和`your_api_key`替换为你的Cloudflare账户邮箱和API密钥。 ### 步骤4:解析DNS记录 最后一步是通过API来解析DNS记录。以下代码示例演示了如何使用Cloudflare API来查找特定的DNS记录: `...
在Zone ID下方点击Get your API token,获取Global API Key。 获得上述二级域名的Domain ID(如何获取参考教程https://www.bilibili.com/video/BV12y411q7q4,或者在Manage Account - Audit Log中查询二级域名的Resource ID即可)。 ROS中添加如下脚本,并修改相关参数: ...
API_KEY="YOUR_API_KEY" # Cloudflare Email EMAIL="YOUR_EMAIL" # Domain DOMAIN="example.com" # Record ID RECORD_ID="YOUR_RECORD_ID" # Get current public IP CURRENT_IP=$(wget -qO- http://ipecho.net/plain) # Update DNS record ...
To get started using Cloudflare's products and services via the API, refer tohow to interact with Cloudflare, which covers using tools likeTerraformand theofficial SDKsto maintain your Cloudflare resources. Using the Cloudflare API requires authentication so that Cloudflare knows who is making requests...
我们点击查看Global API Key 在登陆后就可以查看并复制API 3.使用certbot调用cloudflare api申请证书 连接我们的服务器,这里以Debian为例 首先获取更新 apt-get update 然后安装软件包 apt-get install certbot python3-certbot-nginx python3-certbot-dns-cloudflare ...
API部分长成这样 请务必保存好自己的这些Key,并记录下如下内容: 你注册Cloudflare的邮箱。例:senpei@imn.org Zone ID。每一个域名为一个Zone,这个ID则代表了是哪个域名下。比如我们假设这里Zone ID是Sleep-Black_Tea-ZoneID。 API token。通过上面Get your API token获取到。我们假设咱们的token是nnnaaaAAAA!!!