tac-wordpress-shortcode-WebAPI
Return data from WebAPI using short code
=== tac-wordpress-shortcode-WebAPI ===
Contributors: MRT
Tags: shortcode, WebAPI
Requires at least: 4.6.1
Tested up to: 4.6.1
Stable tag: 1.0.0.0
Return data from WebAPI using short code
== Description ==
Using this plugin, it is possible to return data fetched by a REST API
with JASON format or even return an specific value inside the JSON
using [ Tac_WebApi ] short code.
=Web API=
**Your Web API service has to return data in a Label-Value pair string, with JSON format**
=General format of the short code=
[Tac_WebApi url=”” result=”” username=”” password=”” no-cache=]
=Manual=
1. "url" attribute should contain the WebAPI URL. In its simplest form the short code should
be used with url attribute. The following variables can be used in the url:
- { entry }: It will be replaced by EntryID in edit mode and in insert mode it will be null
- { user_id }: it will be replaced by UserID of the user who is logged in
- { service_url }: the base part of url if any is set in setting page
2. "result" attribute should contain search key if an specific value is going to be returned
3. "username" attribute should contain username if authentication is needed.
4. "password" attribute should contain password if authentication is needed.
5. "no-cache" attribute is "False" by default means the data returned is cashed for 1 minute
however it could be set to "True" if cashing is not required.
== Installation ==
1. Go to `wp-content/plugins/` directory, where all plugins reside, and extract the Compressed
file of "tac-wordpress-shortcode-WebAPI" plugin.
3. Go to `Plugins -> Installed Plugins` in your Word Press admin.
4. Activate the "tac-wordpress-shortcode-WebAPI" plugin.
== Changelog ==
= 1.0.0.0 =
* Initial release.