Skip to content

Commit

Permalink
safer way to deal with the api key
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed Sep 5, 2023
1 parent ad78e00 commit 70be4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -336,3 +336,4 @@ ASALocalRun/

# MFractors (Xamarin productivity tool) working folder
.mfractor/
BrickOwlSharp.Demos/apikey.txt
2 changes: 1 addition & 1 deletion BrickOwlSharp.Demos/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal static class Program
{
static async Task<int> Main()
{
BrickOwlClientConfiguration.Instance.ApiKey = "";
BrickOwlClientConfiguration.Instance.ApiKey = System.IO.File.ReadAllText("apikey.txt");
BrickOwlClientConfiguration.Instance.ApiCallEvent += new BrickOwlApiCallDelegate(() =>
{
Console.WriteLine($"API called");
Expand Down

0 comments on commit 70be4ac

Please sign in to comment.