We provide a complete solution to give an access or share any content of your Wordpress blog through an JSON/XML API,
with very high secure different levels and full control in every API service and every data element in the services.
Full integration with Advanced Custom Fields Free and Pro to build a very dynamic and custom APIs.
Monitor the size of API requests for each account by visual statistics and control in the allowed size of requests.
Plugin is ready for Web and Mobile development and Templates design.
Our plugin can retrieve any data from Wordpress and its plugins but this depending on your reading for plugin documentation and if you don’t know how we will help you for free over our support center http://smartiolabs.com/support
You need to retrieve all posts for custom post type `product` user categories 1,4,6 and make a search in the post table columns besides the postmeta table columns and finally order your results with one of the post meta values.
Simply you can build easily build this query using the plug-in service `getposts` and the request will be something 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 'test'","post_author":"='1'"}&custom_meta_and={"price":">=300","size":"in(1,3,5,8)"}&orderby=postmeta.price&order=desc
Normal User: Share your Wordpress content with anybody.
Mobile developers: Easily access to API services for getting any data from Wordpress, Plugin is ready for mobile development.
Web developers: Use API functions in your plugins development.
Templates designers: Use API functions inside your templates.
Mobile push notification features require “Push Notification System” plugin .
Categories Images plugin
Advanced Custom Fields plugin
Stats module in Jetpack plugin
Social Count Plus plugin
Mobile Push Notification Messages plugin
OAuth Example
<?php /* Download source library from http://smartiolabs.com/blog/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/'; $client = new OAuth2\Client(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( 'limit' => 20, //Limit of result data 'range' => 30, //Number of days to calculate and return the most popular posts 'custom_post' => 'video', 'siteid' => 0 ); $response = $client->fetch('http://smartiolabs.com/demo/api/popular_posts/', $params, 'POST'); echo json_encode($response['result']); } ?>
Built-in Function Example
<?php $args = array( 'limit' => '20', 'range' => 30, //Number of days to calculate and return the most popular posts 'custom_post' => 'video', 'siteid' => 0 ); $fetch = new smapi_core('popular_posts', $args); if($fetch->error !== false){ echo $fetch->error; } else{ foreach($fetch->result as $post){ echo $post['post_title']; } } ?>
Javascript Use
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript"> $.ajax({ url: 'http://smartiolabs.com/demo/popular_posts/?limit=20&siteid=', type: 'GET', dataType: 'jsonp', success: function (data, response) { if (response == 'success') { console.log(data); } } }); </script>
http://smartiolabs.com/demo/wp-admin
Just upload plugin files to the specified folder and sure that Permalink system is enabled
If you found this tool is useful please don’t forget to rate us or share\like the link in your social media.
Subscribe to get plugin future updates and share with you the updates roadmap
We will be happy if you ask us for any help http://smartiolabs.com/support
Check all changes logs click here
Published:
Jan 08, 2025 01:34 AM
Version:
Lastest
Category: