How to start and publish On Air Hangout via API - api

I want to have "gimme air" slack command that would:
Create Hangout on Air and make it available for given google domain
Record itâ„¢
Publish on YouTube as an unlisted video
Retrieve the link
Per this and this question, I can see it's possible to render the button into webpage, but I'd like to get it started automatically.
Is there a way to do that via an API?

Related

Where does the API call from the interactive card in Google Chat go?

I am trying to replicate examples from the Google Docs about Creating interactive cards in Google Chat. I have created a sample link in my card.
Sample card with a link "click me"
But once I hit "click me" I have no idea where the request goes and how to steer that it's routed to my publicly available Node.js express route on Google Cloud run.
I must have missed something about the basic bot communication. Can you help me? (Background. I am sending my card via a simple webhook at this point.)
I have found out, that my implementation was not suitable for interactive cards. If someone clicks an interactive card Google Chat will notify the creating bot at its API point specified in the Google Cloud configuration.
So posting the card via WebHook is possible. But there is not communication channel back in this scenario.
I resolved my issue by implementing it with a proper Google Chat bot.

Create Waze links in web page

I want to build links in my web page to open in Waze.
I have a DB with my customers addresses (not the GPS or Lat/Long) and want to click on the link and open Waze with the directions to the address.
This should be relatively easy to do with the Waze Deeplinks feature. The deep links work differently depending on which environment you're on (see below), which should be fine in your use case.
Basically, when you link someone to https://waze.com/ul?q=some%20address, the Waze site will then take the appropriate action:
Desktop: shows a page that allows you to send the location to a mobile device
Mobile (with Waze installed): open the app and start the search with the entered arguments
Mobile (without Waze installed): open as the live map with a link to the the Play Store or App Store to install Waze
There's the argument &navigate=yes you could add to the URL to start the navigation directly. But from my experience that only seems to have an effect if you provide exact coordinates to navigate to, which you mention you don't have.

Hangout chat doesn't show my bot as user

I have followed the instructions as per the https://developers.google.com/hangouts/chat/how-tos/bots-develop?authuser=1
Created my agent - named as "phoebieagent".
Defined intents and entities.
Fulfilled by webhook and running a flask python API on https.
Published by bot as hangouts chat. Specified bot url to be the one
defined in step 3.
Bot status shows - "live" but in my hangouts I can't see my bot user.
Please suggest trouble shooting steps.
Thanks
Resolved it. Chat was disabled in google admin console.

Download your own photos from Instagram via a web app

I've looked through the API documentation on Instagram and researched the web, but I haven't been able to find a consistent answer to whether it's possible to download your own Instagram photos via a web app.
For example, I'm trying to write a web app which allows users to authenticate into their Instagram account, and then download all their Instagram photos into the web app and display it.
The closest thing I've seen on Instagram is the following url: http://instagram.com/developer/endpoints/media/#get_media
But can someone confirm if this is the correct endpoint? Also, if this is the correct endpoint, assuming that I uploaded a high-resolution photo, would that photo be available for me to download in high resolution via the API?
You can do it easy with Google Chrome and you don't need the API:
I wrote a small ES6 script that does just this ( let's you view and save instagram images and videos on right click )
Here's the code:
document.addEventListener('contextmenu', (event) => {
const elements = document.elementsFromPoint(event.clientX, event.clientY);
const mediaSource = elements.find(element => /img|video/gi.test(element.tagName)).getAttribute('src');
mediaSource && window.open(mediaSource, '_blank');
});
What it does is when you click on image or video, it get's all elements under the mouse, finds the image/video and opens it in new tab. Then you save it.
Also, it's available as a Chrome Extension
Download instagram images of a particular user or tag using python. Source is included both console and GUI. Install all the dependencies before running. Remember this code is not optimized for python 3. Make sure that the profile is public or else only the profile picture will be downloaded.
link to my github repo:https://github.com/techweed/instagami
Its a python2 script and you need to install it for this to work.
The images would be downloaded to your working directory.

How can I access the Google+ hangout chat?

I want to implement a speaker queue manager that works off of the chat - see GitHub repo Q Bot for more details - but are unable to find a way to listen to chat events (and then react to them). Any hints?
There's no way to access chat from the Hangouts API.
There is, however, an open feature request for this. If you star the issue you'll be notified when it's updated.
You might be able to work around this by making your own interface in a Hangout extension to control the inputs for this app, rather than overloading the chat feature.