예제 #1
0
        private ApiContext()
        {
            appConfig   = onedrive.ReadConfig <AqaraConfiguration>("aqaraCloud");
            tokenConfig = onedrive.ReadConfig <Token>("aqaraCloud.token");

            api = new AqaraClient(appConfig);
            api.SetCredentials(tokenConfig.AccessToken);
        }
예제 #2
0
 public void Initialize()
 {
     instance = ApiContext.Api;
     config   = ApiContext.Config;
 }