Google Hangouts website button

删除回忆录丶 提交于 2019-12-03 08:56:42

@Billy I'm not sure what's changed since the other answers here, but I'm actually having some success with this approach :

script(type="text/javascript" src="https://apis.google.com/js/platform.js")
.g-hangout(data-render="createhangout",
           data-invites="[{id: 'YOUR_GOOGLE_PLUS_ID', invite_type: 'PROFILE'}]")

Where YOUR_GOOGLE_PLUS_ID is the number (not your vanity id) found in your profile url. Since my google plus url contains my vanity id, I obtained my YOUR_GOOGLE_PLUS_ID easily from the 'profile' link in the left sidebar.

Once clicked, the workflow goes like this :

  1. Visitor clicks the "start hangout" button
  2. the hangout app launches (chrome, android, etc)
  3. they are prompted to join, they click join
  4. they are prompted to invite you to the hangout. they do so.
  5. you are notified to join.

The next problem I'm experiencing is that step five only seems to occur on the Google Chrome hangout Extension and roughly five minutes later in an email. Meaning no notifications on: Google+ Website, Android Hangout App, Android Google Plus App.

So it seems that this particular situation is as solved as it could be from the "integrate into a website" point of view, the remaining issue is most likely a bug with the google-plus/hangout ecosystem itself.

By the way, instead of using a YOUR_GOOGLE_PLUS_ID you can use the email address of that google-plus user :

script(type="text/javascript" src="https://apis.google.com/js/platform.js")
.g-hangout(data-render="createhangout",
           data-invites="[{id: 'your.google+email.address@gmail.com', invite_type: 'EMAIL'}]")

Although I'm not sure if this means that notification is via email only.

This was the basis of the process but i couldn't workout some of the code in order to rewrite it fully. adding hangouts button to your website

in another video, there was an element of this which would allow the caller to PAY you for the call/knowle

this one might be helpful too: hangouts telephone apo

Computer User

I asked same question on: How to use Google Hangout / on Air as a "contact me" feature on a website and got an answer that the feature request is under process. The complete answer here:

Currently, there is no API call to provide this functionality. You can see the following feature request: https://code.google.com/p/google-plus-platform/issues/detail?id=678

The feature request was accepted on the 8th of December 2013 and knowing how feature requests tend to work, I'd expect it sometime between now and 2017.

This is now a fully supported feature.

<script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>
<g:hangout render="createhangout"></g:hangout>

See the documentation for more detail: https://developers.google.com/+/hangouts/button.

I so want this too, however a middle ground I'm finding is,

  1. Add a Google Hangout button to your page https://developers.google.com/+/hangouts/button
  2. Write your obfuscated Hangout Address next to it, http://www.fingerlakesbmw.org/main/flobfuscate.php

    <p>Invite me, &#104;&#101;&#108;&#108;&#111;&#64;&#100;&#97;&#110;&#99;&#111;&#117;&#114;&#115;&#101;&#46;&#99;&#111;&#46;&#117;&#107;</p>

    <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script>

    <g:hangout render="createhangout"></g:hangout>

Thanks, DanC

You can use this :

<script src="https://apis.google.com/js/platform.js" async defer></script>
<div id="placeholder-div3"></div>
<script>
  gapi.hangout.render('placeholder-div3', {
    'render': 'createhangout',
    'invites' : "[{'id': 'youremail@whatever.com','invite_type': 'EMAIL'},{'id': 'anotheremail@gmail.com','invite_type': 'EMAIL'}]",
    'widget_size': 175
  });
</script>

You can get it from here: https://developers.google.com/+/hangouts/button#initial_app_parameters for google hangout button.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!