Using Google+ Hangouts API

我与影子孤独终老i 提交于 2019-12-05 12:54:19

问题


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??

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

(mydomain.com uses Google Apps for Business)


回答1:


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

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

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



来源:https://stackoverflow.com/questions/22302394/using-google-hangouts-api

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