Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Send message to google hangout using google + api in C#.net?

Tags:

c#

google-plus

By following the steps given in this link https://developers.google.com/+/quickstart/csharp, google plus automatically sign in with the help of gplus-quickstart-csharp code provided in that link. Now i want to send message to google hangout using the above API(Code) I checked this link https://developers.google.com/+/hangouts/api/gapi.hangout.data#gapi.hangout.data.onMessageReceived

In that sendMessage(message) available, how can i implement that method to my C# code.

Any ideas???

like image 823
Lokesh Avatar asked Nov 25 '13 14:11

Lokesh


People also ask

Does Google Chat have an API?

The Google Chat REST API provides programmatic, RESTful access to Chat resources like messages, spaces, and attachments. To call the Google Chat REST API, authenticate with user or service account credentials. For details, see the reference documentation or go directly to the documentation for specific methods: spaces.

How do you send someone a Google chat code?

To create an inline code block, add backticks ` before and after the text you want in a code block. To create a multiline code block, add three backticks ``` before and after the text you want in a code block.


1 Answers

The Hangouts API is only valid for Hangout Apps that are running inside a Hangout Video Call. It is meant for app-to-app communication and not for external processes to be able to communicate with a Hangout App.

Hangout Apps can only be written in JavaScript, since they are run inside the browser.

If you are trying to send a message to someone via a Hangout Text Chat - this currently isn't possible. You may wish to open an issue at https://code.google.com/p/google-plus-platform/ to make sure Google is aware of the desire and use-cases for this feature.

like image 171
Prisoner Avatar answered Sep 28 '22 03:09

Prisoner