I want to store the hangout url in a variable after the hangout is initiated on my website. I am using this:
<head>
<script src="https://apis.google.com/js/platform.js" async defer></script>
</head>
<body>
<g:hangout render="createhangout"
initial_apps="[{ app_id : '184219133185', start_data : 'dQw4w9WgXcQ' }]" widget_size="175">
</g:hangout>
</body>
I know I have to use gethangoutUrl() I just don't know the syntax to use it in. Or where to use it.
The answer is: In the gadget or xml file.
Nothing gets returned to your website that you render the button, it is all in the hangout itself. Pass a token in the start_data variable and then in the xml that launches the hangout, you will want to use that as the key in an ajax call back to your app along with any other gapi.hangout data you want associated with that initiated hangout.