问题描述
如果有人将[email protected]添加到他的Google Hangouts联系人中,并向其发送了Google+ Hangout Chat消息,我想从我的服务器上设置对他的聊天的自动回复.有办法吗?
If someone adds [email protected] 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#gapi.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#gapi.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!