Giter VIP home page Giter VIP logo

huayi-wpapi's Introduction

=== 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日志

huayi-wpapi's People

Watchers

James Cloos avatar 赖泳钦 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.