使用Google+环聊API [英] Using Google+ Hangouts API

查看:115
本文介绍了使用Google+环聊API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人将bot@mydomain.com添加到他的Google Hangouts联系人中,并向其发送了Google+ Hangout Chat消息,我想从我的服务器上设置对他的聊天的自动回复.有办法吗?

If someone adds bot@mydomain.com to his Google Hangout contacts and sends it a Google+ Hangout Chat message, I want to set up an automatic reply to his chat from my server. Is there a way to do that??

我认为可以使用Google+环聊API,但我不知道如何做到.

I think Its possible using the Google+ Hangouts API but I cannot figure out how.

(mydomain.com使用Google Apps for Business)

(mydomain.com uses Google Apps for Business)

推荐答案

这是您要查找的内容: https://developers.google.com/+/hangouts/api/gapi .hangout.data

Here's what you're looking: https://developers.google.com/+/hangouts/api/gapi.hangout.data

以下是收到消息的事件:(回叫) https://developers.google.com/+/hangouts/api/gapi.hangout.data#g​​api.hangout.data.onMessageReceived

Here's the event for message recieved: (callback) https://developers.google.com/+/hangouts/api/gapi.hangout.data#gapi.hangout.data.onMessageReceived

这是发送消息的事件: https://developers.google.com/+/hangouts/api/gapi.hangout.data#g​​api.hangout.data.sendMessage

And here's the event for sending the message: https://developers.google.com/+/hangouts/api/gapi.hangout.data#gapi.hangout.data.sendMessage

这篇关于使用Google+环聊API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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