3 messages in com.googlegroups.bloggerdevphp api labels problem
FromSent OnAttachments
titzu29 Oct 2007 08:46 
Jeff Scudder31 Oct 2007 10:06 
titzu07 Nov 2007 05:02 
Subject:php api labels problem
From:titzu (ct.@internetexpert.ro)
Date:10/29/2007 08:46:27 AM
List:com.googlegroups.bloggerdev

Hi,

I am trying to make a sctipt to post to blogger using PHP Blogger Data API. On http://code.google.com/apis/blogger/developers_guide_php.html there are some example functions in order to use GData api. one is: function createPublishedPost($title, $content) { global $blogID; global $gdClient; $cat="test";

$uri = 'http://www.blogger.com/feeds/' . $blogID . '/posts/ default'; $entry = $gdClient->newEntry(); $entry->title = $gdClient->newTitle($title); $entry->content = $gdClient->newContent($content);

$entry->category = $gdClient->newCategory($cat); //this is my code

$entry->content->setType('text'); $createdPost = $gdClient->insertEntry($entry, $uri); $idText = split('-', $createdPost->id->text); $newPostID = $idText[2];

return $newPostID; }

I tryed to use $entry->category = $gdClient->newCategory($cat); but I get this error "Fatal error: Call to a member function getDOM() on a non-object in ............www\Zend\Gdata\App\FeedEntryParent.php on line 173"

please help