typecho-api
基于Typecho的JSON API插件,支持Typecho v1.2版

安装方法

下载后将JSON文件夹上传至/usr/plugins文件夹内

登录Typecho博客后台,顶部导航栏-控制台-插件-找到JSON API-启用

大功告成!试试访问 http://[example].com/api/[action] 吧!

使用方法

Api地址:http://[example].com/api/[action],替换[action]为下面列出的方法,更多介绍可以看JSON/Action.php中的备注

例如:https://sangsir.com/api/posts

count
posts //参数 pageSize, page, authorId, created, cid, category, commentsNumMax, commentsNumMin, allowComment
pageList //参数 content
single,post //参数 cid, slug
relatedPosts //参数 authorId, cid
recentPost //参数 pageSize
recentComments //参数 pageSize, parentId, ignoreAuthor, showCommentOnly
categoryList //参数 ignore, childMode
tagCloud //参数 sort, count, ignoreZeroCount, desc, limit
archive //参数 format, type, limit
开源:https://github.com/st1ven/typecho-api

本地下载

需登录下载,请您先