Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google Hangouts与邀请异步加载_Hangout - Fatal编程技术网

Google Hangouts与邀请异步加载

Google Hangouts与邀请异步加载,hangout,Hangout,我正在使用async load选项来运行GoogleHangouts按钮,但我不知道如何/在何处添加添加邀请的部分 窗口。\uuuuuu gcfg={ 朗:“pt BR” }; (功能(){ var po=document.createElement('script');po.type='text/javascript';po.async=true; po.src=''; var s=document.getElementsByTagName('script')[0];s.parentNode

我正在使用async load选项来运行GoogleHangouts按钮,但我不知道如何/在何处添加添加邀请的部分

窗口。\uuuuuu gcfg={ 朗:“pt BR” }; (功能(){ var po=document.createElement('script');po.type='text/javascript';po.async=true; po.src=''; var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s); })();


我将在我的web应用程序中添加此代码。

只需将“邀请”参数添加到您已有的内容中即可

function renderButtons(){
  gapi.hangout.render('placeholder-div1', {
      'render': 'createhangout',
      'widget_size': 160,
      'invites': [{ id : '1234', invite_type : 'PROFILE' }, { id : 'foo@example.com', invite_type : 'EMAIL' }]
    })
}
function renderButtons(){
  gapi.hangout.render('placeholder-div1', {
      'render': 'createhangout',
      'widget_size': 160,
      'invites': [{ id : '1234', invite_type : 'PROFILE' }, { id : 'foo@example.com', invite_type : 'EMAIL' }]
    })
}