Web Design Made Easy
PLink – Search Engine, Blogging, Content Management, and much more.

PLink API
PLink Blogs can now be implemented on your website with three lines of code, using the new PLink API. This means portions of your website can be created and edited as the sections of a PLink document, with all of the fancy pants editing features that go along with this: including Textile markup support, tables, images, bibliography entries, etc. Edit your blog on plink-search.com and sections of your site implementing the API will be instantly updated — no need to sift through HTML to find what you want to update, and PLink documents can be edited from any computer! (with your PLink login and password). Sections of a PLink document integrate seamlessly with your new or already established site, as with this example of a PLink document imported into Marie Alighieri’s website.
Using the PLink API your PLink Blog is imported one section at a time. The library is currently available in PHP. Java™ and Ruby versions will soon follow. An example of the PHP library follows:
<?php
include("plinkapi.php");
$PL=new PLink();
$PL->plinkInclude("username","password","Section Title");
?>
Where username and password are your Plink login information, and Section Title represents the name of one of the section in your Plink Blog.
You can use style sheets to modify the style of the imported section, please note that for your convenience images and tables are given the div class ‘figure’. Also the link to PLink at the bottom of the incoming document is wrapped in the div class ‘plink’.
Enjoy the update,
Ben.
Download
PLink API For PHP
PLink API For Ruby
Notes on Ruby
To use the Plink API with your Ruby on Rails application add the file plinkapi.rb to the lib/ directory of your application. To use the API within the application add the following to your application controller or the controller of your choice:
require "plinkapi"
class ApplicationController < ActionController::Base
include PlinkAPI
end
To put the content of a Plink section onto your page add the following line to the Views you want the content to appear in:
<%= plinkInclude( "username", "password", "section" ) %>