cancel
Showing results for 
Search instead for 
Did you mean: 

Looking to build java based integration with google home API

ajainy
Community Member

Ref: https://developers.home.google.com/apis/get-started

As my own home is on google home ecosystem, i want to build (for fun & learning), java based integration with google home APIs. Is there any documentation on RAW api specs or any java SDK. 

All docs refer to kotlin + android integration. I want to build independent java server, integrated with home APIs and exposing REST endpoints for UI or further integration. 

 

 

1 Recommended Answer

GoogleDevForum
Solutions Expert
Solutions Expert

Thanks for reaching out. Currently, Google does not provide an official Java SDK or documentation for integrating with Google Home APIs, focusing instead on Kotlin and Android. Java and Kotlin run on the same runtime engine, so they can interact, but using Kotlin-specific constructs like Flow in Java can be challenging. 

Google's APIs are designed primarily for mobile devices, with authentication and permission management done client-side. There are no server-side capabilities for Google Home APIs at this time, meaning you cannot manage user accounts or control devices through a server-side Java integration. For server-side work, you'd have to handle raw HTTP requests and OAuth authentication yourself.

View Recommended Answer in original post

2 REPLIES 2

GoogleDevForum
Solutions Expert
Solutions Expert

Thanks for reaching out. Currently, Google does not provide an official Java SDK or documentation for integrating with Google Home APIs, focusing instead on Kotlin and Android. Java and Kotlin run on the same runtime engine, so they can interact, but using Kotlin-specific constructs like Flow in Java can be challenging. 

Google's APIs are designed primarily for mobile devices, with authentication and permission management done client-side. There are no server-side capabilities for Google Home APIs at this time, meaning you cannot manage user accounts or control devices through a server-side Java integration. For server-side work, you'd have to handle raw HTTP requests and OAuth authentication yourself.

ajainy
Community Member

Thanks for reply. If I get API docs, then building oauth based auth tokens & integrating with APIs etc, I can take initiative. Of course, I can look at kotlin code and more than happy to build equivalent java constructs.