Пример #1
0
 private void Login()
 {
     //Login
     if (client.Connect(apikey))
     {
         Debug.Log("Connected!");
         //NOTE: to find out the which teamspaces/models the user have access to, make an API call to get the user's account information
         //       see https://3drepo.github.io/3drepo.io/#api-Account-listInfo
         LoadModel();
     }
     else
     {
         //You can catch WebException for details.
         Debug.Log("Failed...");
     }
 }
Пример #2
0
    void Login()
    {
        //Login
        if (client.Connect(username, password))
        {
            var tsList = "Connected! Teamspaces this user has access to: ";
            foreach (var ts in client.GetTeamspaces())
            {
                tsList += ts + ", ";
            }

            Debug.Log(tsList);
            LoadModel();
        }
        else
        {
            //You can catch WebException for details.
            Debug.Log("Failed...");
        }
    }