通过api将日历+事件添加到日历中

时间:2016-03-12 15:11:52

标签: google-plus google-calendar-api

这可能吗?

我想通过api调用将谷歌+页面的公共事件添加到用户日历。很遗憾,google + api并未返回有关该活动的所有信息。所以我正在搜索将此事件添加到日历中的选项,例如Google +上的“参与”按钮。

1 个答案:

答案 0 :(得分:0)

@Alex,你试过吗

  

Sharing interactive posts

     

互动帖子提供了一种简单明了的方式,允许用户与他们的关系分享您的网站或应用,并邀请他们采取行动,例如, RSVP参加活动

向您的网站添加添加按钮:

<script >
window.___gcfg = {
lang: 'zh-CN',
parsetags: 'onload'
};
</script>
<script src="https://apis.google.com/js/client:platform.js" async defer></script>

然后创建按钮:

<!-- Place the tag where you want the button to render -->
<button
class="g-interactivepost"
data-contenturl="https://plus.google.com/pages/"
data-contentdeeplinkid="/pages"
data-clientid="xxxxx.apps.googleusercontent.com"
data-cookiepolicy="single_host_origin"
data-prefilltext="Engage your users today, create a Google+ page for your business."
data-calltoactionlabel="CREATE"
data-calltoactionurl="http://plus.google.com/pages/create"
data-calltoactiondeeplinkid="/pages/create">
Tell your friends
</button>
相关问题