Hitokoto API
Machine-translated (anthropic, claude-haiku-5-5) from the Chinese original. Read the original in 中文
Contents
#鸽
Changelog
- May 2, 2018: First release, only supports GBK encoding output
- May 4, 2018: Added js format output!
Request
Request URL: https://xsy.app/hitokoto/get
Request method: GET
Request encoding: Interface: charset Parameter: UTF-8/GBK (default UTF-8)
Request parameters: Interface: type Parameter: js (if empty, returns plain text)
Examples
JS:
function hitokoto(){document.write('不是强者必胜,而是胜者必强,他们比我们强,仅此而已。');}
GBK (text):
不能则学,不知则问,耻于问人,决无长进
Usage
<script type="text/javascript" src="https://xsy.app/hitokoto/get/?type=js&charset=utf-8"></script><div id="hitokoto"><script>hitokoto()</script></div>
Comments