语言
/v1/url/encode
将字符串转换为百分比编码格式 (RFC 3986)。 空格变为 %20,特殊字符变为其对应的十六进制字符。 可安全用于 URL 查询参数和路径段。
The string to URL-encode.
curl -X POST https://api.botoi.com/v1/url/encode \ -H "Content-Type: application/json" \ -d '{"text":"hello world & goodbye=test"}'
在将用户提供的搜索词附加到 URL 之前对其进行编码,以便 &、= 和 # 等特殊字符不会破坏 URL 结构。
在将回调 URL 作为 OAuth redirect_uri 参数传递之前对其进行百分比编码,以避免双重编码问题。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.