This Class is a easy-to-use library for access all the BlogBlogs API.
Version: pre-alphaExample$foo = new BlogBlogs("your-username","your-api-key");
$xml_return = $foo->getFavorites();
... [More]
$xml_return = $foo->getUser("username");
$xml_return = $foo->getBlog("http://link-of-blog.com/");See your API Access KeyIn this page: Blogblogs Key you can see your API Key.
PHP - Javascript Example$foo = new BlogBlogs("your-username","your-api-key");
$xml_return = $foo->getUser($_GET['username']);
$xml = new SimpleXMLElement( $xml_return );
switch($_GET['option']):
case "fullname":
return $xml->document->result->fullname;
break;
case "blogs":
return $xml->document->result->blogs;
break;
case "page":
return $xml->document->result->profilepage;
break;
endswitch;
Calling with jQuery(get)
$.get("example-js.php", { username: "user-you-want" option: "option-you-want" },
function(data){
alert("Data Loaded: " + data);
});Get jQuery here
AuthorCreated by: @nops [Less]