diff --git a/sample/TMDb/src/TMDb/TMDb/DetailPage.xaml.cs b/sample/TMDb/src/TMDb/TMDb/DetailPage.xaml.cs index 9d4c202..22b16d0 100644 --- a/sample/TMDb/src/TMDb/TMDb/DetailPage.xaml.cs +++ b/sample/TMDb/src/TMDb/TMDb/DetailPage.xaml.cs @@ -22,7 +22,7 @@ public DetailPage(int id) Task.Run(async () => { - var client = new TMDbClient("870755bb1ee864493829202f5afa20bd"); + var client = new TMDbClient(TMDbAPIKey.Key); var taskMovie = client.GetMovieAsync(id); var taskSimilar = client.GetMovieSimilarAsync(id); var taskCredit = client.GetMovieCreditsAsync(id); diff --git a/sample/TMDb/src/TMDb/TMDb/MainPage.xaml.cs b/sample/TMDb/src/TMDb/TMDb/MainPage.xaml.cs index ce4f027..b4c0fe2 100644 --- a/sample/TMDb/src/TMDb/TMDb/MainPage.xaml.cs +++ b/sample/TMDb/src/TMDb/TMDb/MainPage.xaml.cs @@ -92,7 +92,7 @@ async void MenuItemsView_ItemSelected(object sender, SelectedItemChangedEventArg async Task LoadMovieListAsync(string menu) { - var client = new TMDbLib.Client.TMDbClient("APIKEY"); + var client = new TMDbLib.Client.TMDbClient(TMDbAPIKey.Key); IList items = null; if (menu == "Now playing") { diff --git a/sample/TMDb/src/TMDb/TMDb/TMDbAPIKey.cs b/sample/TMDb/src/TMDb/TMDb/TMDbAPIKey.cs new file mode 100644 index 0000000..a40dbcc --- /dev/null +++ b/sample/TMDb/src/TMDb/TMDb/TMDbAPIKey.cs @@ -0,0 +1,8 @@ +namespace TMDb +{ + public class TMDbAPIKey + { + // https://www.themoviedb.org/documentation/api + public static readonly string Key = "APIKEY"; + } +}