API 进行 public Google 环聊 Url

API to make public Google Hangout Url

我有一个私人网页。我想从该页面提供 Google 视频群聊 link。

拥有 link 的任何人都可以 "authorized" 使用环聊。我希望他们不必登录(如果他们已经登录也没关系)。这是额外的工作和失败的机会。

如何进行 public Google 视频群聊 link?两个人约会的方式?我可以在哪里传递 roomId。我查看了环聊 API,但没有看到如何添加它。

Hangout URL 有 135 位,所以这似乎足够随机以确保安全。我写了这个函数,但它大部分都不起作用,当它起作用时,环聊不是 public.

  newHangoutsUrl: function() {
    /* Hangout urls can be made on the fly:
     *     https://plus.google.com/hangouts/_/{roomId}
     *
     * Where roomId = 27 random chars from set '234567abcdefghijklmnopqrstuvwxyz'
     *
     * this is called on client so we use Math.random();
     */
    var set = '234567abcdefghijklmnopqrstuvwxyz'.split('');
    var ret = '';
    for (var i=0; i<27; i++) {
      ret += set[Math.floor(Math.random()*set.length)];
    }
    return 'https://plus.google.com/hangouts/_/' + ret;
  },

有什么建议吗?

您可能应该只使用 Hangout Button from your page as there is not a way to programmatically generate / use hangout URLs. You can use Invites 将人员添加到视频群聊中。