Google Hangouts网站按钮 [英] Google Hangouts website button

查看:74
本文介绍了Google Hangouts网站按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在我的公司网站上添加一个Google环聊按钮,当单击该按钮时,它会打给我?我有一个商业网站,我希望任何人都可以像在您的网站页面上嵌入的Skype按钮那样打电话.我遇到的问题是我去了 https://developers.google.com/+/hangouts/button 并阅读并转到 https://code.google.com/apis/console/上的Google API控制台,然后打开Goog​​le+环聊API,然后添加我的Google+个人资料和我的项目ID(app_id),并将其输入到html标记示例中,并将代码嵌入到我的页面中,并显示按钮,但是,当按钮为单击该按钮,它将启动Google Hangouts程序并要求邀请某人.

Is it possible to add a Google Hangouts button to my business site that when clicked on initiates a call to me? I have a business website and I would like for anyone to be able to call be like the Skype button that you can embed on your website page does. Problem that I have is I went to https://developers.google.com/+/hangouts/button and read and then went to the Google API Console at https://code.google.com/apis/console/ and turned on the Google+ Hangouts API and then added my Google+ profile and my Project ID (app_id) and entered it into the html markup example(s) and embeded the code into my page and it does show the button, however, when the button is clicked, it launches the Google Hangouts program and asks to invites someone.

实际上,我需要打电话给我,因为在我网页上的客户单击按钮并启动环聊程序后,他们将不知道在此输入什么.需要像Skype通话按钮一样工作,然后实际上给我打电话.

I need to this to actually start call me because the customer at my webpage, when they click the button and the Hangouts program launches, they are not going to know what to enter here. Needs to work like the Skype call button does and actually call me.

一如既往,我们将不胜感激!

As always, any help is greatly appreciated!!

-比利

推荐答案

@Billy我不确定自从这里的其他答案以来发生了什么变化,但是我实际上在这种方法上取得了一些成功:

@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'}]")

其中YOUR_GOOGLE_PLUS_ID是在个人资料网址中找到的号码(不是您的个性编号).由于我的Google加URL包含我的虚荣ID,因此我可以从左侧边栏中的个人资料"链接轻松获得YOUR_GOOGLE_PLUS_ID.

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. 访问者点击开始视频群聊"按钮
  2. 视频群聊应用启动(Chrome,Android等)
  3. 提示他们加入,他们单击加入
  4. 系统会提示他们邀请您加入视频群聊.他们这样做.
  5. 系统会通知您加入.

我遇到的下一个问题是,第五步似乎仅出现在Google Chrome视频群聊扩展程序上,大约五分钟后出现在一封电子邮件中.表示没有通知:Google+网站,Android Hangouts应用程序,Android Google Plus应用程序.

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.

因此,从集成到网站"的角度来看,这种特殊情况似乎已得到解决,剩下的问题很可能是google-plus/hangout生态系统本身的错误.

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.

顺便说一句,您可以使用该Google+用户的电子邮件地址来代替YOUR_GOOGLE_PLUS_ID:

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.

这篇关于Google Hangouts网站按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆