Skip to content

st1ven/typecho-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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

  1. count
  2. posts //参数 pageSize, page, authorId, created, cid, category, commentsNumMax, commentsNumMin, allowComment
  3. pageList //参数 content
  4. single,post //参数 cid, slug
  5. relatedPosts //参数 authorId, cid
  6. recentPost //参数 pageSize
  7. recentComments //参数 pageSize, parentId, ignoreAuthor, showCommentOnly
  8. categoryList //参数 ignore, childMode
  9. tagCloud //参数 sort, count, ignoreZeroCount, desc, limit
  10. archive //参数 format, type, limit

感谢

https://github.com/lizheming/JSON

Releases

No releases published

Packages

No packages published

Languages