Please watch the video. An image is worth 1,000 words.
This video is around 10 minutes long, 15 FPS = 9,000,000 words worth, to be precise!
elWpAPI is a full and thorough implementation of the WordPress XMLRPC remote publishing protocol. It's a set of PHP classes that make remote logging in and remote posting to WordPress a breeze. This allows you to write PHP scripts and push contents to WordPress... and litter the web or start a content business. Mostly used by blackhats, this script is designed for automated content generators unless you actually create a legit application powered by it, in which case I consider you're underusing it (kidding as this may be even more financially rewarding).
Blog farmers use it as a seeding tool, remote publishing posts on hundreds of blogs scoring some affiliate or pay per click bucks in the process. There are even legit and 'nice' uses for this script but I will not name them here as it would make my eval tool look bad.
It can publish posts and pages and even upload media in the Amateur Version but can do anything in the Professional Version, helped by my rFC-rSQL plugin that facilitates access to virtually all core functionality including direct database handling.
Word of Advice: For WordPress XMLRPC Tutorials view the Snippets pages on the right side. You will see all that can be done with this tool and you will understand that, it's a matter of time over money. elWpAPI saves you time, your time is money = elWpAPI saves and makes you money.
1 | Do I need elWpAPI?
Totally! You wouldn't expect me to say otherwise, would you?
Actually, if you're LAZY, a total beginner PHP developer, have no knowledge of WordPress or SEO and can not figure out why you would need to automate WordPress posting (even if your life depended on it)... I'd say you don't need this.
Realized you need it?... keep reading.
2 | What’s in the Box?
readme.txt files contain further details. The following items are included:.
- WpAPI.php includes the elWpAPI class, post/page helpers and my awesome TextBlender() function for patterned content generation.
- WpAPIpro.php* hosts the elWpAPIpro class that extends elWpAPI but adds native support for rFC/rSQL plugin collaboration.
- WpAPIwrap.php* hosts elWpAPIwrap which exposes all WordPress functions (and documentation) in an easy to use class.
* Require the Professional Version.
Works best with a proper PHP IDE like NuSphere PhpEd which I use.
3 | Is it Rocket Science?
See the Snippets. Start with the Foreplay. If you can't handle the code, your Kung-Fu PHP is no good.
<?php
// Prepare the blog Information (XMLRPC.php URL, Username, Password)
$xmlrpc = 'http://blog.domain.tld/xmlrpc.php';
list($username, $password) = array('username', 'password');
// Instantiate the elWpAPI object
$wpapi = new elWpAPI($xmlrpc, $username, $password);
// Easiest method to create posts (there are other methods also)
$postID = $wpapi->createPost(
$post_title = 'Test Post', // The title of the new post
$post_text = 'Test Text', // Text visible on archive pages
$more_text = 'Test More Text', // Text after <!--more--> Separator
$excerpt = 'Test Excerpt', // The excerpt of a posting
$slug = 'test-slug', // The slug (human friendly post name)
$time = 0, // Means now, always use localtime not GMT
$post_status = 'draft', // Or 'publish' to publish
$categories = array('Test Category1', 'Test Category2'), // Categories
$tags = array('Test Tag1', 'Test Tag2'), // Tags
$custom_fields = array( // Custom Fields
'custom_field_1' => 'value_1',
'custom_field_2' => 'value_2',
)
);
// If $postID is not numeric, the posting failed
if(!is_numeric($postID)){
// Get the last error and act accordingly
var_dump($wpapi->getLastErrorEx());
}else{
// Publish the draft now...
$wpapi->publishPost($post_ID);
// ... and delete it.
$wpapi->dropPost($postID);
}
// How cool is this?
?>
4 | Testing Compatibility
This next snippet will test compatibility between you your host and elWpAPI. If all messages that are output by the following snippets are positive in nature and say all cuddly things: "You're GAME!"
<?php
header('Content-Type: text/plain');
echo 'PHP: ', (version_compare(PHP_VERSION, '5.2', '>=') ? 'compatible' : 'old'), PHP_EOL;
// WPAPI comes with full source also but you should use the Encoded Version in production
echo 'ionCube Loader: ', (extension_loaded('ionCube Loader') ? 'found' : 'missing'), PHP_EOL;
echo 'cURL HTTP Client: ', (extension_loaded('curl') ? 'found' : 'missing'), PHP_EOL;
echo 'XMLRPC: ', (extension_loaded('xmlrpc') ? 'found' : 'missing'), PHP_EOL;
echo 'ZIP: ', (extension_loaded('zip') ? 'found' : 'missing'), PHP_EOL;
?>
5 | I’m sold… Let me have this!
So, your blackhat blood is boiling in your veins and you need this badly. You see yourself building some tools and quickly giving Search Engines (not to be named here) a whole lot of unhealthy content to chew on, maybe some will stick. You see yourself creating a service to post stuff to blogs and charging people for it. Or maybe you just want to give me some money and this is the closest you could find to a donation button.
Either way, here's how you do it. In the right sidebar you will find the buttons to buy this awesome Tool. First you will need to register here (can be done on this very page with the Usership widget), login (Usership widget also), then purchase and... when the payment goes through download links will be magically enabled.
Go litter the web, make money and show no mercy.
PS: Example code is in the Footer. Look down...


