直接在应用内请求对应的链接即可(GET,未来可能会出现POST)。大部分API支持json输出,仅需将 format
参数设置为 json
即可。
在使用之前,请先请求https://api.tasaed.top以确保API可用性。
format
:
json
: 输出json格式。true
时代表所有API已通过基准测试,可以进行使用。false
时不代表所有API完全不可用,只是部分API可能会出现不可预料的错误,因此最好不要在返回false时使用。success
为 true
时同上。success
为 false
时同上。format
:
json
: 输出json格式。type
:
1
为中国时区。2
为时间戳。3
为格林威治时间。4
为协调世界时。5
为上海时间。6
为纽约时间。7
为新加坡时间。8
为乌鲁木齐时间。9
为毫秒时间戳。10
为自主输入时区,PHP 时区列表。timezone
: 为时区,只在 type=10
时有效。Error:
<错误类型> ;
Data:
<错误描述> ;
Success:
false ;
data
运行状态为 true
时返回时间(返回时间戳时为 int
类型),运行状态为 false
时返回错误描述。success
返回运行状态,true
或 false
。error
运行状态为 true
时无此参数,运行状态为 false
时返回错误类型。format
:
json
: 输出json格式。content
: 内容。type
: 可为:sha256
, sha512
, sha3-256
, crc32
, md5
, sha1
, xxh3
, md2
, md4
, gost
, crc32b
, crc32c
, ripemd160
, whirlpool
, gostcrypto
, ripemd256
, murmur3a
, murmur3f
, sha
, sha3
, md
, xxh
, ripemd
, murmur3
。Error:
<错误类型> ;
Data:
<错误描述> ;
Success:
false ;
data
运行状态为 true
时返回转换后的文本,运行状态为 false
时返回错误描述。success
返回运行状态,true
或 false
。error
运行状态为 true
时无此参数,运行状态为 false
时返回错误类型。content
: 内容。format
:
json
: 输出json格式。value
: 内容。type
:
0
为编码。1
为解码。Error:
<错误类型> ;
Data:
<错误描述> ;
Success:
false ;
data
运行状态为 true
时返回转换后的文本,运行状态为 false
时返回错误描述。success
返回运行状态,true
或 false
。error
运行状态为 true
时无此参数,运行状态为 false
时返回错误类型。format
:
json
: 输出json格式。min
: 最小数。max
: 最大数。type
:
0
为使用梅森旋转(Mersenne Twister)随机数生成器。1
为使用加密安全、均匀分布的生成器。Error:
<错误类型> ;
Data:
<错误描述> ;
Success:
false ;
data
运行状态为 true
时返回一个随机数,运行状态为 false
时返回错误描述。success
返回运行状态,true
或 false
。error
运行状态为 true
时无此参数,运行状态为 false
时返回错误类型。value
运行状态为 true
时无此参数,运行状态为 false
时返回是否是数字(布尔)或 min
和 max
的原值。format
:
json
: 输出json格式。type
:
1
为指定一个时间戳生成。timestamp
: 时间戳,请填写UNIX毫秒级时间戳。Error:
<错误类型> ;
Data:
<错误描述> ;
Success:
false ;
data
运行状态为 true
时返回一个ULID,运行状态为 false
时返回错误描述。success
返回运行状态,true
或 false
。error
运行状态为 true
时无此参数,运行状态为 false
时返回错误类型。format
:
json
: 输出json格式。data
返回IP。success
返回 true
。format
:
json
: 输出json格式。type
: 为 1
时输出不转义的UA,只在输出json格式时有效。data
返回UA(默认为转义后文本)。success
返回 true
。format
:
json
: 输出json格式。type
: 为 1
时是16进制转RGB,为 2
是RGB转16进制。hex
: 16进制颜色代码,只在 type
为 1
时有效。rgb
: RGB颜色代码,用英文逗号 ,
分割,只在 type
为 2
时有效。Error:
<错误类型> ;
Data:
<错误描述> ;
Success:
false ;
data
运行状态为 true
时返回转换后的颜色代码,type
为 1
时返回一个数组,为 2
时返回一个字符串。运行状态为 false
时返回错误描述。success
返回运行状态,true
或 false
。error
运行状态为 true
时无此参数,运行状态为 false
时返回错误类型。