I followed the instructions on https://developers.google.com/+/hangouts/button to attempt to load a google hangout button.
Here is my code:
https://jsfiddle.net/7s460oa0/1/
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div id="placeholder-div"></div>
<script>
gapi.hangout.render('placeholder-div', { 'render': 'createhangout' });
</script>
Strangely, however, I get the "gapi is not defined" error in my javascript console!
Am I doing something silly, or is the google hangouts button API broken?