Navigation Menu

Skip to content

st1ven/typecho-api

Folders and files

Name Name
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

typecho-api

The JSON API plug-in based on Typecho supports Typecho v1.2


Installation method

Upload the JSON folder to the/usr/plugins folder after downloading

Log in to Typecho blog background, top navigation bar - console - plug-in - find JSON API - enable

be accomplished! Try visiting http://[example]. com/api/[action]!


usage method

Api address: http://[example]. com/api/[action]. Replace [action] with the method listed below. For more information, see JSON/Action.php Notes in

For example: https://sangsir.com/api/posts

  1. count
  2. Posts//Parameters pageSize, page, authorId, created, cid, category, commentsNumMax, commentsNumMin, allowComment
  3. PageList//parameter content
  4. Single, post//The parameter cid, slug
  5. RelatedPosts//Parameter authorId, cid
  6. RecentPost//parameter pageSize
  7. RecentComments//Parameters pageSize, parentId, ignoreAuthor, showCommentOnly
  8. CategoryList//The parameter ignore, childMode
  9. TagCloud//Parameters sort, count, ignoreZeroCount, desc, limit
  10. Archive//Parameter format, type, limit

thank

https://github.com/lizheming/JSON

Releases

No releases published

Packages

No packages published

Languages