private void button_auth_Click(object sender, RoutedEventArgs e) { //register callback ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn); ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet); ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout); ZOOM_SDK_DOTNET_WRAP.AuthParam param = new ZOOM_SDK_DOTNET_WRAP.AuthParam(); param.appKey = textBox_key.Text; param.appSecret = textBox_secret.Text; var res = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param); Hide(); }
public MainWindow() { InitializeComponent(); //register callback ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn); ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet); ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout); ZOOM_SDK_DOTNET_WRAP.AuthParam param = new ZOOM_SDK_DOTNET_WRAP.AuthParam(); // //param.appKey = "4AIahTCShwgx9wvhf65m3SC6Dh5S6dIxeWOq"; //param.appSecret = "HrDjWFQfreo3UBeg9FVyfJSPKDgJXmDvnZ6b"; //param.appKey = "ZbfGVCW3FBM0IULTkp9Xn1h6QBfWSxUCHZ1Z"; //param.appSecret = "g2s1G64OFqenitYg2kzp5PPINjGS7uv2gqNU"; param.appKey = "laXgngPcCX8vXilceX4HiqCocj3sETsleGtr"; param.appSecret = "UNxw4mFtC1UpTIXg1CaYksDPeivTPsVnAGsE"; ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param); Hide(); }
private void AuthSDK( string zoomKey, string zoomSecret, string meetingId ) { CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn((ret) => { if (AuthResult.AUTHRET_SUCCESS == ret) { Task.Run(() => JoinRoom(meetingId)); } else//error handle.todo { } }); AuthParam param = new ZOOM_SDK_DOTNET_WRAP.AuthParam { appKey = zoomKey, appSecret = zoomSecret }; var res = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param); }