Cloudflare
跳转到导航
跳转到搜索
KV[编辑 | 编辑源代码]
API[编辑 | 编辑源代码]
读取[编辑 | 编辑源代码]
curl "https://api.cloudflare.com/client/v4/accounts/${account_identifier}/storage/kv/namespaces/${namespace_identifier}/values/${key_name}" \
-H "Authorization: Bearer ${API_TOKEN}"
写入[编辑 | 编辑源代码]
curl --request PUT \
--url https://api.cloudflare.com/client/v4/accounts/${account_identifier}/storage/kv/namespaces/${namespace_identifier}/values/${key_name}" \
-H "Authorization: Bearer ${API_TOKEN}"\
-H 'Content-Type: multipart/form-data' \
--form metadata='[]' --form value=${VALUE}