GET
实用工具
Uuencoder
对字符串实现Uuencoder和Uudecoder
累计调用 10
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/Uuencoder
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| str | string | 必填 | 需要编码或解码的字符,如果get或post application/x-www-form-urlencoded 需要url编码 | 你好 |
| type | string | 可选 | 返回格式,默认json | json |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回信息 |
| timestamp | number | 返回时间戳 |
| req_timestamp | number | 请求时间戳 |
响应示例
200 OK
{
"code": 1,
"message": "&Y+V@Y:6]\n`\n",
"timestamp": 176033616531,
"req_timestamp": 1760336165001
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/Uuencoder?str=%E4%BD%A0%E5%A5%BD&type=json"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/Uuencoder?str=%E4%BD%A0%E5%A5%BD&type=json");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/Uuencoder?str=%E4%BD%A0%E5%A5%BD&type=json");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/Uuencoder?str=%E4%BD%A0%E5%A5%BD&type=json", timeout=10)
print(r.json())