【问题标题】:Add Categories to Blogger with Google Api?使用 Google Api 将类别添加到 Blogger?
【发布时间】:2012-03-26 05:56:45
【问题描述】:

我正在使用 Zend Google API 向我的博主 (Blogspot) 博客发帖。我只能输入标题和内容,但我不知道如何添加类别(也称为“标签”)。 有没有办法使用 Zend Api 以类别发布到博客?

谢谢!

【问题讨论】:

    标签: php api blogger blogspot


    【解决方案1】:

    http://groups.google.com/group/bloggerdev/browse_thread/thread/84053cb152af6423/e76330903c5061f7?lnk=gst&q=category

    $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); 
    

    【讨论】:

      猜你喜欢
      • 2013-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-25
      相关资源
      最近更新 更多