google home layout control works but no voice command - google-home

I am developing an integration with the goole assistant for my home automation, I use node red to handle api calls in the webhook and the flow is handling well the calls SYNC, QUERY and EXECUTE when using the graphical interface of the google home app.
however when I use the voice command I receive the EXECUTE request and the lamp turn on, but I do not receive the QUERY request which causes google home to say that the service is not available.
I don't understand what is going wrong because when I use the graphical interface of google home I get EXECUTE and then QUERY normally. What could be wrong?

Related

Getting statistics from Google DV360 campaign via API

I'm trying to use google API to get reports on campaigns/ads that are created in Display & Video 360.
Fetching information about them requires https://www.googleapis.com/auth/display-video scope for my access token. However, it looks like getting reports is only possible through creating/running queries, which are part of Double Click Bid Manager, so I need to additionally enable this API and request https://www.googleapis.com/auth/doubleclickbidmanager scope.
Is my understanding correct? It seems strange because I can view reports in DV360 web interface.

Google Drive API for receiving access request notification

I am trying to integrate with Google Drive such that I can receive a notification whenever someone tries to request access for any file in my drive. But, I could not find any such API for that.
I have integrated with Google Drive Watch Changes API, but it doesn't push any event for access requests, otherwise, it works fine. I have also checked List Changes and Query Activity api whether it has any change for such case, but I could not find any such change/activity.
I found out that Slack can receive such notifications which means it is possible somehow. Kindly help, if you know how can it be done.
I assume that your goal is to record each time that someone opens any file in your Drive. If my assumption is correct, then you could use Apps Script API to accomplish your goal. You should create an onOpen() trigger that saves the user interaction (you may want to send yourself an email with MailApp), and apply it to every file that you want to monitor. You can take these project management examples as a reference. Please, ask me any additional doubt about this approach.

How can I let others read and edit a google sheet (not shared with them) using googleapi, without them having to download credential?

I am a beginner trying out api for fun.
The problem is, lets say, I want to write a simple windows program with golang to let my friends read and edit one of the sheets saved on my google drive. How can I do this without having them download a credential file?
What I want it to do is simply redirect them to the Oauth Page right away, and if their email address is one recognized by the app it will grant them access to that google sheet.
What i think you need is to integrate your go app with Oauth protocol.
More specifically, with the Google provider.
This is mainly 3 steps:
add the oauth client to your application
something like this: https://github.com/golang/oauth2
See their docs on how to do it.
go to google dev documentation and see how to integrate google auth flow into the client: https://developers.google.com/identity/protocols/OAuth2
I'm not sure if google has something more specific for google drive integration and/or go-lang client in particular. Please do some searching.
make the glue code on your go app so that the user can interact with this (the login button (or command, if it is terminal based), error messages, logout, etc)
More questions will appear when you start to do this, however it is a great example to learn Oauth as well.
General guidelines:
https all the queries or oauth is basically useless
oatuh has many auth-flows and you must choose which one(s) you support. use whatever google documentation recommends for m2m scenario (machine 2 machine)
log errors so that your friends can send you a log file for you to debug issues
maybe set some feature flag so that you can simply disable this feature to run/test localhost ? maybe useful? you decide.

How to integrate my java application with Google Home?

I am trying to integrate my java app to google home.
Agenda : Taking the input from the google home as request and sending it to my application as a request parameter and giving back the response to the Google home. This is my agenda.
I am new to google home so if anyone knows how to do this please help me.
Thanks.
You want to look into the Actions on Google platform.
Actions run in the cloud, not on a device. Your Assistant device (such as a Google Home) acts like a browser.
There is a Java/Kotlin library available.

Accessing Voice Mail Services in Windows Phone 7

I am creating a module for my project which is location based profile change in Windows Phone 7.
I am giving an extra feature in my app. When a user recieves a call, when in a certain profile (i.e silent or driving), the incoming call will recieve a service like voice mail where he/she can record a message.
Which API can I use to achieve that?
It's not entirely clear what you're after but I'm certain you can't do it:
There is no API for accessing profile information.
There is no API for accessgin call history details.
There is no way to determine if your application is being obscured for an incoming call or another reason.
Access to voicemail is operator dependent. There is no universal way to access this. Some oeprators provide their own APIs for accessing things like voicemail but these vary in implementation, availability and capabilites.

Resources