Mirror

编程入门 行业动态 更新时间:2024-10-12 20:27:36
Mirror-API:html卡可以与Google+联系人共享吗?(Mirror-API: Can html cards be shared to Google+ contacts?)

我正在尝试与Google+联系人分享时间卡。 我所做的所有测试都是一对一(私人)股票。

如果我只设置'html'属性,则共享将为空(除了#throughglass标记)。

如果我只设置'text'属性,则共享将包含'text'设置为的字符串值(以及hash标签)。

如果我同时设置'html'和'text'属性,则共享将包含'text'设置为的字符串值(以及hash标签)。

这是预期的行为,还是有办法分享HTML内容?

I am trying to share timeline cards with Google+ contacts. All the testing I've done is with one-to-one (private) shares.

If I set only the 'html' property, the share will be blank (other than the #throughglass tag).

If I set only the 'text' property, the share will include the string value that 'text' is set to (and the hash tag).

If I set both the 'html' and 'text' properties, the share will include the string value that 'text' is set to (and the hash tag).

Is this the expected behavior, or is there a way to share html content?

最满意答案

这是预期的行为。

如果要共享HTML内容,可以添加自定义菜单选项,该选项将时间轴项及其所有参数发送到服务器。 然后,您可以解析时间轴项目的HTML参数,并使用Google+ API将其发送到Google+ 。

This is expected behavior.

If you want to share HTML content, you can add a custom menu option, which will send the timeline item and all its parameters to your server. You can then parse the timeline item's HTML parameter and send it to Google+ with the Google+ API.

更多推荐

本文发布于:2023-08-08 00:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466640.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Mirror

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!