()
| 45 | }; |
| 46 | |
| 47 | static async Task RunExamplesAsync() |
| 48 | { |
| 49 | // Get the API key from .env file |
| 50 | Env.Load(); |
| 51 | |
| 52 | Console.WriteLine("Starting..."); |
| 53 | |
| 54 | _apiKey = Environment.GetEnvironmentVariable(HumeApiKey); |
| 55 | if (string.IsNullOrEmpty(_apiKey)) |
| 56 | { |
| 57 | throw new InvalidOperationException($"{HumeApiKey} not found in environment variables."); |
| 58 | } |
| 59 | |
| 60 | _client = new HumeClient(_apiKey); |
| 61 | |
| 62 | await Example1Async(); |
| 63 | await Example2Async(); |
| 64 | await Example3Async(); |
| 65 | |
| 66 | Console.WriteLine("Done"); |
| 67 | } |
| 68 | |
| 69 | static async Task Main(string[] args) |
| 70 | { |
nothing calls this directly
no outgoing calls
no test coverage detected