2012-01-19 36 views

回答

0
$labels = $entry->getCategory(); 
$newLabel = $gdClient->newCategory('testlabel2', 'http://www.blogger.com/atom/ns#'); 
$labels[] = $newLabel; // Append the new label to the list of labels. 
$entry->setCategory($labels);