public void OBOUserAndRoomSeaerch() { SymOBOAuth oboAuth = new SymOBOAuth(symConfig); oboAuth.sessionAppAuthenticate(); SymOBOUserAuth auth = oboAuth.getUserAuth("*****@*****.**"); SymOBOClient client = SymOBOClient.initOBOClient(symConfig, auth); UserClient userClient = client.getUsersClient(); UserInfo user = userClient.getUserFromUsername("*****@*****.**"); StreamClient streamClient = client.getStreamsClient(); List <string> streamTypes = new List <string>(); streamTypes.Add("IM"); streamTypes.Add("ROOM"); List <StreamListItem> result = streamClient.getUserStreams(streamTypes, false); Assert.IsTrue(user != null); }
public void OBOUserAndRoomSeaerch() { SymConfig symConfig = new SymConfig(); SymConfigLoader symConfigLoader = new SymConfigLoader(); symConfig = symConfigLoader.loadFromFile("C:/Users/Michael/Documents/Visual Studio 2017/Projects/apiClientDotNet/apiClientDotNetTest/Resources/testConfig3.json"); SymOBOAuth oboAuth = new SymOBOAuth(symConfig); oboAuth.sessionAppAuthenticate(); SymOBOUserAuth auth = oboAuth.getUserAuth("*****@*****.**"); SymOBOClient client = SymOBOClient.initOBOClient(symConfig, auth); UserClient userClient = client.getUsersClient(); UserInfo user = userClient.getUserFromUsername("*****@*****.**"); StreamClient streamClient = client.getStreamsClient(); List <string> streamTypes = new List <string>(); streamTypes.Add("IM"); streamTypes.Add("ROOM"); List <StreamListItem> result = streamClient.getUserStreams(streamTypes, false); Assert.IsTrue(user != null); }