PHP Class bloggerclient, aprilchild

include_once("class.bloggerclient.php"); $username = "whoever"; $password = "password"; $blog = new bloggerclient($username, $password); $postid = "8450106"; $myPost = $blog->getPost($postid);
Show file Open project: aprilchild/aprilchild

Public Properties

Property Type Description
$XMLappID
$XMLpassword
$XMLusername
$apiName should not need to change
$appID
$bPath should not need to change
$bServer replace with one from http://plant.blogger.com/api/register.html
$blogClient

Public Methods

Method Description
bloggerclient ( $username, $password )
connectToBlogger ( ) Returns a connection object to the blogger server
deletePost ( $postID, $publish = false )
editPost ( $blogID, $textPost, $publish = false )
errTest ( $result_struct )
exec ( $req )
getPost ( $postID )
getRecentPosts ( $blogID, $numPosts )
getTemplate ( $blogID, $template = "main" )
getUserInfo ( )
getUsersBlogs ( )
getUsersBlogsSelect ( $name = "blog", $selected = "", $extra = "" ) $name as it would have for the select
newPost ( $blogID, $textPost, $publish = false )
setTemplate ( $blogID, $template = "archiveIndex" )

Method Details

bloggerclient() public method

public bloggerclient ( $username, $password )

connectToBlogger() public method

Returns a connection object to the blogger server
public connectToBlogger ( )

deletePost() public method

public deletePost ( $postID, $publish = false )

editPost() public method

public editPost ( $blogID, $textPost, $publish = false )

errTest() public method

public errTest ( $result_struct )

exec() public method

public exec ( $req )

getPost() public method

public getPost ( $postID )

getRecentPosts() public method

public getRecentPosts ( $blogID, $numPosts )

getTemplate() public method

public getTemplate ( $blogID, $template = "main" )

getUserInfo() public method

public getUserInfo ( )

getUsersBlogs() public method

public getUsersBlogs ( )

getUsersBlogsSelect() public method

$name as it would have for the select
public getUsersBlogsSelect ( $name = "blog", $selected = "", $extra = "" )

newPost() public method

public newPost ( $blogID, $textPost, $publish = false )

setTemplate() public method

public setTemplate ( $blogID, $template = "archiveIndex" )

Property Details

$XMLappID public property

public $XMLappID

$XMLpassword public property

public $XMLpassword

$XMLusername public property

public $XMLusername

$apiName public property

should not need to change
public $apiName

$appID public property

public $appID

$bPath public property

should not need to change
public $bPath

$bServer public property

replace with one from http://plant.blogger.com/api/register.html
public $bServer

$blogClient public property

public $blogClient