1

我正在尝试实现 VIEW_WEBSITE 菜单项,但似乎没有用。

这是来自 Playground 的有效负载:

"menuItems": [ { "action": "VIEW_WEBSITE", "payload": " https://xxxx.appspot.com/mypage " }

这是我使用的python代码:

if 'menuItems' in self.timeline_obj:
        self.timeline_obj['menuItems'].append({'action': 'VIEW_WEBSITE', 'payload':url})
     else:
        self.timeline_obj['menuItems'] = [{'action': 'VIEW_WEBSITE', 'payload':url}]

Playground 上的结果如下:

{ “种类”:“mirror#timelineItem”,“id”:“b0612a88-6ffc-4542-be85-7d8d025366fb”,“bundleId”:“wp-6-13-2-51”,“isBundleCover”:真,“创建”:“2013-09-06T13:02:52.931Z”,“更新”:“2013-09-06T13:02:52.931Z”,“etag”:“\”hzfI85yu0lKQdtWV4PO1jAbQxWw/dIvJnSSZAhq7fGkQJAO_JLjnc_8\“”,“文本: "aa-wp-6-13-2-51", "html": "\n http://lh3.ggpht.com/mLKySisY9n2F0IqjEovLOxZ7bLp7lIO5DSQtGq7D66Klh0jcvIfrtywObJnj5QKeoHaQDgLs-wc_u558bz9W8MYy\n \" width=\"100% "100%\">\n \n 震撼广告:Buzz 会带来生意吗?\n \n https://aaa-stage.appspot。com/static/images/aaa_logo.png\n \">\n ", "menuItems": [ { "action": "VIEW_WEBSITE", "payload": " https://aa-stage.appspot.com/youtube" } ] }

韩国

4

0 回答 0