【问题标题】:Add a google+ event to calendar via api通过 api 将 google+ 事件添加到日历
【发布时间】:2016-03-12 15:11:52
【问题描述】:

这可能吗?

我想通过 api 调用将来自 google+ 页面的公共事件添加到用户日历。不幸的是,google+ api 并未返回有关该事件的所有信息。所以我正在寻找一个选项来将此事件添加到日历中,例如 google+ 上的“参加”按钮。

【问题讨论】:

    标签: google-plus google-calendar-api


    【解决方案1】:

    @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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-28
      • 2011-11-06
      • 1970-01-01
      • 2011-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多