laiyongqin / huayi-wpapi Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hitsword/huayi-wpapi
WordPress API and ThinkPHP SDK
This project forked from hitsword/huayi-wpapi
WordPress API and ThinkPHP SDK
=== HuaYi WordPress API === Contributors: 华怡软件 Tags: WordPress,API Requires at least: 3.7.0 Tested up to: 4.8.1 Stable tag: 2.0 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html == Description == /** * 参数调用: * get_option('huayi_wpapi_center') * get_option('huayi_wpapi_callback') * get_option('huayi_wpapi_token') * get_option('huayi_wpapi_ips') * get_option('huayi_wpapi_thumbnail_size') * * 被动接口: * 关闭伪静态:index.php?huayi_route=huayi-wpapi * 开启伪静态: /huayi-wpapi * 获取$_GET变量: * 关闭伪静态: index.php?huayi_route=huayi-wpapi&get1=1&get2=2 * 开启伪静态: /huayi-wpapi?get1=1&get2=2 * 请求参数: * @post string action 操作 列表:/lib/action.php * @post string signature 签名 算法:md5(token.time) * @post int time 时间戳 备注:不能大于当前时间10分钟 * 返回内容:JSON: { "errcode": "1", "errmsg": "请求成功!", "data": {} } **/ 文件结构: /assets/ 静态素材文件(图片、CSS、JS) /lib/ 库目录 /lib/ init.php 初始化插件(一般无需修改) /lib/ function.php 插件函数(一般无需修改) /lib/ action.php 被动接口操作 /lib/ callback.php 主动接口操作 /lib/class/ 第三方类库 /huayi-wpapi.php 插件入口文件(一般无需修改) /uninstall.php 卸载插件时调用(一般无需修改) /readme.txt 当前文件(一般无需修改) /SDK/ SDK与DEMO == TODO == 1.aciton和callback增加hook 2.优化API格式 3.优化huayi_wpapi_rest方法 4.增加API日志
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.