我正在尝试实现VIEW_WEBSITE菜单项,但似乎无效。
这是游乐场的有效载荷:
“menuItems”:[ { “行动”:“VIEW_WEBSITE”, “有效载荷”:“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的结果如下:
{ “kind”:“镜像#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 \“”, “text”:“aa-wp-6-13-2-51”, “html”:“\ n http://lh3.ggpht.com/mLKySisY9n2F0IqjEovLOxZ7bLp7lIO5DSQtGq7D66Klh0jcvIfrtywObJnj5QKeoHaQDgLs-wc_u558bz9W8MYy\n \”width = \“100%\”height = \“100%\”> \ n \ n震惊广告:是否Buzz引领业务?\ n \ n https://aaa-stage.appspot.com/static/images/aaa_logo.png\n \“> \ n”, “menuItems”:[ { “行动”:“VIEW_WEBSITE”, “有效载荷”:“https://aa-stage.appspot.com/youtube” } ] }
KR