Adding Categories using Google's PHP API
| From: | Ali, Saqib | Date: | Sat, 20 Oct 2007 14:57:02 +0000 |
| Subject: | Adding Categories using Google's PHP API | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263445@lists.php.net to get a copy of this message | ||
I am trying to use the Google's PHP API (ZendGdata) to add Categories
(labels/tags) to the posts for a blog.
I know how to define Category, but I am at a loss when it comes to
adding that Category to a entry (post). Any ideas how this can be
done? Any examples will be highly appreciated.
$category = new Zend_Gdata_App_Extension_Category();
$category->setScheme(".....");
$category->setTerm("mylabel");
Thanks
saqib