0 Fackeln 0 Fackeln ×

Service AJAX API is easy to use ajax interface for any plugin you have in mind.

Features includes

Available API Service:
  • PublicAPIWhich AJAX api that can be serve publicly.
  • ProtectedAPIWhich AJAX api that can only be serve when a user is logged in.
  • AdminAPIWhich AJAX api that can only be accessed by Admin accounts.

So far this 3 suffice WordPress needs.

Otohits.net, fast and efficient autosurf

  • SVCdb (statische) – Query Helper class, which uses wpdb so this is a drop in class.
  • SVCHelper (statische) – Some helper functions that will get updated as the library requires it.
  • SVCService (statische) – Service API Class
  • SVCSQLConstructorUsed by SVCdb for creating a SQL statements.
  • SVCStore (statische) – Common WordPress store functions, this also serves as an example of how to use the SVCdb class. This will also be updated as the library requires it.
3rd Party:

JSMinUsed to minify the javascript that is generated by service.

Folder structure:

Hinweis: The services/**.php folder is where you will put your services scripts (API) it will auto included every time the plugin is initialised. Although it is not advisable, make it as minimum.


Requires jQuery and it uses jQuery ajax promise.

> API.fetch('servertime', ['Y-m-d']).Erfolg(Funktion (response) {
   }).fehl(Funktion(err) { 

More example can be found on plugin documentation

0 Fackeln Twitter 0 Facebook 0 Google 0 PIN es teilen 0 LinkedIn 0 E-Mail -- 0 Fackeln ×

Hinterlasse eine Antwort

Ihre e-Mail-Adresse wird nicht veröffentlicht. Pflichtfelder sind markiert *