Start meeting from Win SDK with SSO login. Wrong Usage Error.


#1

we are trying to login from windows sdk and start scheduled meeting. User was created from rest api with action ssoCreate, and we have got SSOToken from rest api with Retrieve a user’s token.

First, we login with SSO token. Sample code is

ZoomInstance.GetAuthServiceWrap().Add_CB_onLoginRet(OnLoginRet);

LoginParam4SSO loginSSOParam = new LoginParam4SSO(); 
loginSSOParam.ssoToken = token;

LoginParam loginParam = new LoginParam(); 
loginParam.loginType = LoginType.LoginType_SSO; 
loginParam.ssoLogin = loginSSOParam;

var loginResult = ZoomInstance.GetAuthServiceWrap().Login(loginParam);

And then,

We start the meeting with this code,

StartParam4APIUser apiUser = new StartParam4APIUser(); 
apiUser.meetingNumber = meetingId; 
apiUser.userID = userId;

StartParam startParam = new StartParam(); 
startParam.apiuserStart = apiUser; 
startParam.userType = SDKUserType.SDK_UT_APIUSER;

SDKError err = ZoomInstance.GetMeetingServiceWrap().Start(startParam); 
if (err != SDKError.SDKERR_SUCCESS) 
Console.WriteLine(err.ToString() + “. Start Meeting Operation FAILED”);

But err code is SDKERR_WRONG_USEAGE. 
How can we solve this problem ? 
We are waiting for your reply. 
Thank you.


#2

Hi Mustafa,

Could you please share the Login Result? And also please use Normal User as user type.

Best


#3

Hi,

I tried to start with normaluser but the same error has occured.

Out login result is SDK_WRONG_USAGE, but in onLoginRet event function LOGIN_STATUS is LOGIN_SUCCESS.

AccountInfo has correct displayname.

 

public void onAuthenticationReturn(AuthResult ret)
{
ZOOM_SDK_DOTNET_WRAP.LoginParam4SSO loginSSOParam = new LoginParam4SSO();
loginSSOParam.ssoToken = token;

ZOOM_SDK_DOTNET_WRAP.LoginParam loginParam = new ZOOM_SDK_DOTNET_WRAP.LoginParam();
loginParam.loginType = LoginType.LoginType_SSO;
loginParam.ssoLogin = loginSSOParam;

ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
var loginResult = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Login(loginParam);
Debug.WriteLine(loginResult.ToString());
}
public void onLoginRet(LOGINSTATUS ret, IAccountInfo pAccountInfo)
{
Debug.WriteLine(ret.ToString());
}


#4

could you show me your stare meeting code and where you call this api? thanks.


#5

i have already sent to meeting start codes.

 

StartParam4APIUser apiUser = new StartParam4APIUser(); 
apiUser.meetingNumber = meetingId; 
apiUser.userID = userId;

StartParam startParam = new StartParam(); 
startParam.apiuserStart = apiUser; 
startParam.userType = SDKUserType.SDK_UT_APIUSER;

SDKError err = ZoomInstance.GetMeetingServiceWrap().Start(startParam); 
if (err != SDKError.SDKERR_SUCCESS) 
Console.WriteLine(err.ToString() + “. Start Meeting Operation FAILED”);

 

We tried the same process at the electron side, it worked properly. But c# wrapper does not work to start function by logging on.


#6

hi, 

  1. you need to call start meeting after you got login success callback event

2.please change to StartParam4NormalUser and SDK_UT_NORMALUSER

thanks.

dats