Sunday, January 1, 2017

Service Ajax Api


Provider AJAX API is simple to use ajax interface for any plugin you have got in mind.

Features contains

To Be Had API Provider:
  • PublicAPI – Which AJAX api that can be serve publicly.
  • ProtectedAPI – Which AJAX api that can best be serve while a person is logged in.
  • AdminAPI – Which AJAX api that may only be accessed by Admin debts.
thus far this 3 suffice WordPress wishes.
Classes:
  • SVCdb (static) – Question Helper class, which makes use of wpdb so that is a drop in class.
  • SVCHelper (static) – A Few helper functions with a view to get updated as the library requires it.
  • SVCService (static) – Provider API Class
  • SVCSQLConstructor – used by SVCdb for creating a SQL statements.
  • SVCStore (static) – Commonplace Wordpress retailer functions, this additionally serves as an example of the way to use the SVCdb class. this will also be updated as the library requires it.
third Celebration:

JSMin – Used to minify the javascript that is generated by means of carrier.

Folder construction:
/provider /docs /comprises /libraries /public /products and services Note: The products and services/**.php folder is the place you'll put your products and services scripts (api) it is going to automobile incorporated whenever the plugin is initialised. even though it is not a good suggestion, make it as minimal.
Utilization:

Requires jQuery and it makes use of jQuery ajax promise.

> API.fetch('servertime', 'Y-m-d').success(serve as (response) console.log(response); ).fail(serve as(err) console.log(err); ); More instance can be found on plugin documentation or you can view them on-line right here
FULL DOWNLOAD

No comments:

Post a Comment

Trik tersembunyi Bermain Slither.io agar menjadi no 1 | cara tau ampuh

Slither.io Unblocked Play Engaging in online game playing avails a chance for one to have a great experience. This opens up an enormous amo...