public static async Task GetTreeExample() { GetTreeResponse response = await DataExchangeAPI.GetTree(); if (!response.Success) { throw new Exception("Did not successfully get the Tree from DE2"); } await Task.CompletedTask; }
public static async Task <GetTreeResponse> GetTreeExample() { TelematicsV2 telematicsV2 = new TelematicsV2(publicKey, privateKey, userKey); GetTreeResponse response = await telematicsV2.GetTree(); return(response); }