{"id":19039857,"url":"https://github.com/johnlui/json-api-for-emlog","last_synced_at":"2025-04-23T21:06:40.644Z","repository":{"id":30004406,"uuid":"33551997","full_name":"johnlui/JSON-API-for-Emlog","owner":"johnlui","description":"强大的 JSON 格式的数据输出插件，为 Emlog 而生。","archived":false,"fork":false,"pushed_at":"2015-04-07T16:07:07.000Z","size":944,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T21:06:29.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnlui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-07T15:36:10.000Z","updated_at":"2023-07-25T13:55:43.000Z","dependencies_parsed_at":"2022-06-26T12:32:14.447Z","dependency_job_id":null,"html_url":"https://github.com/johnlui/JSON-API-for-Emlog","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FJSON-API-for-Emlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FJSON-API-for-Emlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FJSON-API-for-Emlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FJSON-API-for-Emlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnlui","download_url":"https://codeload.github.com/johnlui/JSON-API-for-Emlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514782,"owners_count":21443209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T22:19:05.630Z","updated_at":"2025-04-23T21:06:40.612Z","avatar_url":"https://github.com/johnlui.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSON API for Emlog\n--\n\n###强大的 JSON 格式的数据输出插件，为 Emlog 而生。基于 [TinyLara](http://tinylara.com/)。\n\n[下载地址](https://github.com/johnlui/JSON-API-for-Emlog/releases)\n\n## API\n\n所有 API 后面务必加上 `?token=koanfoiuh32789gf782bqwiubuyiqwgd`，该值在 `content/plugins/json_api/tinylara/config/routes.php` 中修改。\n\n### 1.获取管理员信息\n\n####*http://ooxx.com/content/plugins/json_api/tinylara/public/admin-info*\n\n返回值：\n\n```json\n{\n  \"nickname\": \"John·Lui\", \n  \"photo\": \"http://blog.io/content/uploadfile/201402/thum-d1241391266636.jpg\", \n  \"email\": \"wenhanlv@gmail.com\", \n  \"description\": \"Nothing.\"\n}\n```\n\n### 2.获取站点信息\n\n####*http://ooxx.com/content/plugins/json_api/tinylara/public/site-info*\n\n返回值：\n\n```json\n{\n  \"blogname\": \"岁寒\", \n  \"bloginfo\": \"岁寒，然后知松柏之后凋也！\"\n}\n```\n\n### 3.从第 0 篇到第 2 篇文章\n\n####*http://ooxx.com/content/plugins/json_api/tinylara/public/articles/from/0/to/2*\n\n返回值：\n\n```json\n[\n  {\n    \"gid\": 2,\n    \"title\": \"Welcome To John·Lui's Personal Blog\",\n    \"date\": 1323699410,\n    \"content\": \"\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:16px;\\\"\u003e面朝大海，春暖花开\u003c/span\u003e\",\n    \"excerpt\": \"\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:16px;\\\"\u003e面朝大海，春暖花开\u003c/span\u003e\",\n    \"alias\": \"\",\n    \"author\": 1,\n    \"sortid\": 4,\n    \"type\": \"blog\",\n    \"views\": 2129,\n    \"comnum\": 0,\n    \"attnum\": 0,\n    \"top\": \"n\",\n    \"sortop\": \"n\",\n    \"hide\": \"n\",\n    \"checked\": \"y\",\n    \"allow_remark\": \"y\",\n    \"password\": \"\",\n    \"template\": \"\"\n  },\n  {\n    \"gid\": 3,\n    \"title\": \"告诉你C盘的每一个文件夹都是干嘛的（Win7版）\",\n    \"date\": 1313210374,\n    \"content\": \"\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e最近看到很多“告诉你C盘的每一个文件夹都是干嘛的”之类的日志，点进去一看，全是XP的！\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003eXP已经落伍。如果我没记错的话，XP是微软公司2001年10月25号发布的，十年了啊同志们！\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e去年吧，戴尔出了第一款不支持XP的笔记本！这是创举！其实XP最弱的一点，是其对三核以上CPU支持的严重不足，还是容易卡死，Win7就可以自如地调动各个CPU干活。当然，Win7个人版有时候还是会卡的，比如本地大容量数据转移的时候，由于中断信号全部分配给CPU0，可能会导致CPU0资源耗尽电脑巨卡，而服务器系统2008R2就没有这个问题。\u003c/span\u003e\u003cbr /\u003e\\r\\n\u0026nbsp;\u003cspan style=\\\"font-family:Microsoft YaHei;font-size:14px;\\\"\u003e \u003c/span\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e扯远了啊，下面马上列出Win7的C盘的各个文件夹。\u003c/span\u003e \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e1.PerfLogs\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003eperfLogs是win7系统自动生成的日志信息，如磁盘扫描错误信息等，可以删掉但不建议删。那样反而会降低系统速度\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e2.Program Files\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e各种安装程序的栖身之所，里面有Internet Explorer，Microsoft Games等系统自带软件，也有WinRAR等自己安装的应用软件。\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e3.Program Files (x86)\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e如果你的系统是64位的，那C盘里还会有这个文件夹，这里面就是可以再64位系统下运行的32位软件，和Program Files一个性质。\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e4.ProgramData\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e这是个公用的被创建文件夹或文件存放的地方，这些文件夹或文件仅由创建者完整控制。众所周知，Windows是个多用户系统，每个用户的配置文件都存在这里。它在XP时代叫Documents and Settings,Vista和7中叫用户（Users）和ProgramData\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e我不像网上说的那样最好不要删除，我直接说：不要动！那是你使用软件的记录，存各种配置文件的地方，别动就行了。\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e5.Temp\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e临时文件所在之处，里面可以清空，但是你试试，能做到吗？在显示隐藏文件，显示系统文件的情况下，里面还是只有一个TXT。\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e6.Windows\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e这个一般人一看就明白，Windows系统文件所在之处，勿动。\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e7.用户\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e里面通常有Default、UpdatsUser、公用还有一个以你的用户名命名的文件夹。\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e都是用户配置文件，勿动。\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e一般我见到的联想的本用户名都是Lenovo，专卖店严格执行联想总部的命令，他卖出的所有的电脑都是Lenovo-PC。其他牌子的类推之，一般都是这样。\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e不过像我自己做的自己装的这个系统，用户名当然叫JohnLv了！\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e8.其它\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e有的电脑会有Downloads，TDDownloads等，全部为下载目录，建议把里面的文件存到其他盘，删之！\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e有的还会有Nvidia，那是安装N卡驱动时释放文件的文件夹，果断删之！\u003c/span\u003e\u003c/p\u003e\\r\\n \u003cp align=\\\"right\\\"\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e——吕文翰_\u003c/span\u003e\u003cspan style=\\\"color:#005eac;\\\"\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003eJohnLV @USTB\u003c/span\u003e\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"color:#005eac;\\\"\u003e\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003elvwenhan.com\u003c/span\u003e\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e2011年8月13日12:27:45\u003c/span\u003e\u003c/p\u003e\",\n    \"excerpt\": \"\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003e最近看到很多“告诉你C盘的每一个文件夹都是干嘛的”之类的日志，点进去一看，全是XP的！\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;color:#000000;font-size:14px;\\\"\u003eXP已经落伍。如果我没记错的话，XP是微软公司2001年10月25号发布的，十年了啊同志们！\u003c/span\u003e\u003cbr /\u003e\\r\\n\u003cspan style=\\\"font-family:Microsoft YaHei;font-size:14px;\\\"\u003e...\u003c/span\u003e\",\n    \"alias\": \"\",\n    \"author\": 1,\n    \"sortid\": 4,\n    \"type\": \"blog\",\n    \"views\": 2304,\n    \"comnum\": 0,\n    \"attnum\": 0,\n    \"top\": \"n\",\n    \"sortop\": \"n\",\n    \"hide\": \"n\",\n    \"checked\": \"y\",\n    \"allow_remark\": \"y\",\n    \"password\": \"\",\n    \"template\": \"\"\n  }\n]\n```\n\n### 4. 第 2 篇文章\n\n####*http://ooxx.com/content/plugins/json_api/tinylara/public/articles/2*\n\n返回值：\n\n```json\n{\n  \"gid\": 2,\n  \"title\": \"Welcome To John·Lui's Personal Blog\",\n  \"date\": 1323699410,\n  \"content\": \"面朝大海，春暖花开\u003c/span\u003e\",\n  \"excerpt\": \"面朝大海，春暖花开\u003c/span\u003e\",\n  \"alias\": \"\",\n  \"author\": 1,\n  \"sortid\": 4,\n  \"type\": \"blog\",\n  \"views\": 2129,\n  \"comnum\": 0,\n  \"attnum\": 0,\n  \"top\": \"n\",\n  \"sortop\": \"n\",\n  \"hide\": \"n\",\n  \"checked\": \"y\",\n  \"allow_remark\": \"y\",\n  \"password\": \"\",\n  \"template\": \"\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlui%2Fjson-api-for-emlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnlui%2Fjson-api-for-emlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlui%2Fjson-api-for-emlog/lists"}