SiberianGuy
SiberianGuy

Reputation: 25302

Find out url of the hangout started with HangoutButton

I'm tring to integrate Hangout to my WebSite. I want make it possible so that one user creates a new hangout and others see the url so they are able to join. I followed Google API Docs and create a HangoutButtons. It does its job well - it creates a new hangout but I don't see a way to programmatically access the url of the created hangout (so that I could share it with other users).

Upvotes: 4

Views: 839

Answers (1)

abacabadabacaba
abacabadabacaba

Reputation: 2692

To get the URL of a Hangout, you need to create a Hangout app. To have the app automatically launched when the user clicks the Hangout button, add it to initial_apps parameter of the button. From within the app, you can use gapi.hangout.getHangoutUrl() function to get the URL of the Hangout.

Upvotes: 4

Related Questions