automate sending messages in google hangouts from unix server - unix

Is there a way that I could automate sending messages to a group in google hangouts using its API from my UNIX box? I am trying to automate a sql query which in turn sends the result as instant message to google hangouts.

Google Hangouts does not currently have an API for chat. You can star this feature request to show your interest though.

Related

How to send Telegram Message using Google Apps Script?

I have a basic Google App Script which is connected to a Google Sheet and sends a birthday reminder email on the day of someones birthday.
What I would like to do, is send an automated message on Telegram using the same data whilst inside of a group chat.
I don't want the message to come from a Bot account, but rather my own account so that it looks like I have genuinely sent the message myself. :)
Can this be done?
I have searched the web without success. Everything seems to be centered around creating a Bot account.

Get access to clients data using API

Is it possible to make a platform where client can sign up and log in using their Google accounts, and accept that their Google Analytics data will be used for calculations.
They should accept the use only once, and then the program should download and process the Google Analytics data every day.
Please point me in the correct direction for documentation
Yes, you need to create a project in Google Cloud Platform, then go to : API and Services > Library > Google Analytics API. (This is to get analytics from an user). Then you need to create a project inside Firebase, allowing email authentication and you will be able to do your task.

How to send an Attachment in Google Chat via Bot/ Webhook

My organisation is using Google Chat for internal communication. In one of the group in the app I am sending the report of daily automation test run using webhook. Currently the report consist of only text message containing the pass/ fail count.
But I want to send the html report as well with that. I could not found any source which tell the information about how to send the attachment in the bot messages in Google chat.
Please help me if someone knows how to send the attachment report using Google Chat Bot or Webhook.
Per documentation, Bots have limited message types they can send. (Only simple text, or Cards)
I would suggest sending a link to download the report, which is feasible with the bot. See Including links in message text

Is there a way to schedule mail messages using the API?

Recently, google added the "Schedule send" function to gmail. Is there anyway to call this functionality using the API? I'm using
GmailApp.sendEmail("eMail", "subject", "message");
to send e-mail inside app maker scripts, however, in my use case, I need to send a mail and then schedule 2 other messages.
Do you guys know if this is currently possible?
Thanks,

Google calendar API calls blocked by captcha

I have successfully written a tool to display upcoming calendar events on a website using Google's calendar API (v2). I am using the username/password method outlined at https://developers.google.com/google-apps/calendar/v2/developers_guide_dotnet#AuthClientLogin. Today an instance of this code would not return data or a decent error message. I finally logged into the web server and browsed directly to http://calendar.google.com and logged in using the credentials. I was challenged by Google's captcha and then my code worked.
How do I get around API calls being blocked by Google's captcha security? I don't want to have to re-code for magic cookies but I will if I have to. I have read some about generating tokens but I dont know if that is something I have to do once or every time the code is called.
If your app is a service that is getting used by many people, you might be running into API call bandwidth limitation. That is, google is limiting the number of API requests per time interval.
If this IS getting used by many people, you may have to upgrade to a paid account.

Resources