
What we offer?
We offer a whole resolution to present an entry or share any content material of your WordPress weblog via an JSON/XML API,
with very excessive safe totally different ranges and full management in each API service and each knowledge ingredient within the companies.
Full integration with Superior Customized Fields Free and Professional to construct a really dynamic and customized APIs.
Monitor the scale of API requests for every account by visible statistics and management within the allowed dimension of requests.
Plugin is prepared for Net and Cell improvement and Templates design.
Additional Assist !
Our plugin can retrieve any knowledge from WordPress and its plugins however this relying in your studying for plugin documentation and for those who don’t know the way we’ll provide help to free of charge over our help heart http://smartiolabs.com/support
For instance
It’s essential retrieve all posts for customized put up sort `product` person classes 1,4,6 and make a search within the put up desk columns apart from the postmeta desk columns and eventually order your outcomes with one of many put up meta values.
Merely you may construct simply construct this question utilizing the plug-in service `getposts` and the request shall be one thing like that:
http://smartiolabs.com/demo/api/getposts/?categoryid=1,4,6&custom_post=product&custom_search_and={"comment_count":"between 1 and 100","post_title":"like 'take a look at'","post_author":"='1'"}&custom_meta_and={"worth":">=300","dimension":"in(1,3,5,8)"}&orderby=postmeta.worth&order=desc
For who?
Regular Person: Share your WordPress content material with anyone.
Cell builders: Simply entry to API companies for getting any knowledge from WordPress, Plugin is prepared for cell improvement.
Net builders: Use API capabilities in your plugins improvement.
Templates designers: Use API capabilities inside your templates.
Further Plans:
We additionally present further plans for builders and enterprises here
API Providers
- Person operations:
- Login
- Singup
- Social signup and login
- Edit the person profile
- Misplaced password
- Change person password
- Change person profile picture
- Record of authors
- Get full profile for writer
- Record of posts printed by an writer
- Get posts that person remark in it
- Posts:
- Publish new put up
- Replace or edit a put up
- Add media file
- Get posts by class or customized taxonomy
- Search in posts
- Final posts in weblog
- In style Posts in vary days
- Get posts by put up format
- View put up by id
- Archive
- Get posts by archive time
- Feedback:
- Get feedback of a put up
- Remark in a put up
- Replace or edit a remark
- Final feedback within the weblog
- View remark by ID
- Pages:
- Get record of pages
- View a web page by ID
- Classes:
- Get record of all classes
- View a class by ID
- Taxonomies:
- Get an inventory of all customized taxonomies
- View customized taxonomy object
- Tags:
- Get record of all tags
- Get posts by tag
- Providers:
- Show the record of community websites
- Social accounts hyperlinks and stats
- Weblog choices and knowledge
- Contact WordPress administrator
- Administration Actions:
- Change the put up standing
- Change the remark standing
- Delete person completely
- Delete put up completely
- Delete remark completely
- Customized Providers & Choices:
- Name one of many customized companies you made
- Get an inventory of all customized choices worth
- Push Notification:
- Save new system token
- Edit the system subscription in channels
- Get an inventory of channels and whichever system subscribed
- Get the record of all channels
Options
- Outputs two totally different knowledge sorts XML / JSON / JSONP
- OAuth 2.0 Authentication
- Full integration with Superior Customized Fields Free and Professional to construct a really dynamic and customized APIs
- OAuth log-in web page authentication to guard your content material from stealing
- Particular permissions for each OAuth shopper ID
- API utilization restrict for each OAuth entry token
- Advanced authentication degree for the premium content material
- Consumer administration system for OAuth 2.0
- Full statistics for API utilization
- Assist Geolocation companies
- API Full management : Allow/Disable each API service & each callback parameters
- Decide the entry degree function for each API service
- Construct your individual service that you just make you to construct a customized API service
- Create customized choices for end-user to make him customise the appliance
- Assist customized taxonomies, customized fields, customized put up sorts and meta bins
- Lots of dynamic choices to you (developer) and to the end-user
- Full integration with WordPress’s core
- Integrates with some superior plugins and there’s a future plan to extra different plugins
- Particular settings for the appliance permits the person full management over the various choices
- Full integration with WordPress choices and settings
- Assist put up codecs in WordPress 3.8
- All inputs are filtered and secured
- Test required inputs for each methodology and present errors if missed any parameter
- Tables and rows are mounted so no output tags will change and that’s imply no app crashes will occur
- Choice to make use of API with an authentication key
- Full documentation embedded contained in the plugin for developer use
- Choice to Allow or Disable developer mode
Push Notification System
Cell push notification options require “Push Notification System” plugin .
API integrates with the next plugins:
Classes Pictures plugin
Superior Customized Fields plugin
Stats module in Jetpack plugin
Social Rely Plus plugin
Cell Push Notification Messages plugin
Code Samples
OAuth Instance
<?php /* Obtain supply library from http://smartiolabs.com/weblog/wordpress-api-plugin-oauth-lib/ */ require('OAuth.php'); const CLIENT_ID = 'REPLACE_CLIENT_ID'; const CLIENT_SECRET = 'REPLACE_CLIENT_SECRET'; const REDIRECT_URI = 'http://smartiolabs.com/demo/oauth/callback.php'; const AUTHORIZATION_ENDPOINT = 'http://smartiolabs.com/demo/api/authorize/'; const TOKEN_ENDPOINT = 'http://smartiolabs.com/demo/api/access_token/'; $shopper = new OAuth2Client(CLIENT_ID, CLIENT_SECRET); if (!isset($_GET['code'])){ $auth_url = $client->getAuthenticationUrl(AUTHORIZATION_ENDPOINT, REDIRECT_URI); header('Location: ' . $auth_url); } else{ $params = array('code' => $_GET['code'], 'redirect_uri' => REDIRECT_URI); $response = $client->getAccessToken(TOKEN_ENDPOINT, 'authorization_code', $params); $client->setAccessToken($response['result']['access_token']); $params = array( 'restrict' => 20, //Restrict of outcome knowledge 'vary' => 30, //Variety of days to calculate and return the most well-liked posts 'custom_post' => 'video', 'siteid' => 0 ); $response = $client->fetch('http://smartiolabs.com/demo/api/popular_posts/', $params, 'POST'); echo json_encode($response['result']); } ?>
Constructed-in Operate Instance
<?php $args = array( 'restrict' => '20', 'vary' => 30, //Variety of days to calculate and return the most well-liked posts 'custom_post' => 'video', 'siteid' => 0 ); $fetch = new smapi_core('popular_posts', $args); if($fetch->error !== false){ echo $fetch->error; } else{ foreach($fetch->outcome as $put up){ echo $put up['post_title']; } } ?>
Javascript Use
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script sort="textual content/javascript"> $.ajax({ url: 'http://smartiolabs.com/demo/popular_posts/?restrict=20&siteid=', sort: 'GET', dataType: 'jsonp', success: perform (knowledge, response) { if (response == 'success') { console.log(knowledge); } } }); </script>
Strive it now
http://smartiolabs.com/demo/wp-admin
- Observe: Some options in management panel shall be disabled for safety causes
- Person: admin
- Password: demo
Easy methods to set up?
Simply add plugin recordsdata to the desired folder and positive that Permalink system is enabled
Documentation
- Full documentation embedded contained in the plugin UI for developer use
- Full documentation exists with plugin recordsdata
- For fast view and take a look at you may go to this hyperlink:
http://smartiolabs.com/demo/documentation
Necessities
- WordPress launch 3.0 or later
- PHP model 5.2.4 or later
Observe:
When you discovered this device is beneficial please don’t neglect to fee us or sharelike the hyperlink in your social media.
Subscribe to get plugin future updates and share with you the updates roadmap
Assist
We shall be joyful for those who ask us for any assist http://smartiolabs.com/support
Changelogs
Test all modifications logs click here