Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #37 from myroot/update-sample-apikey
Browse files Browse the repository at this point in the history
Update API key from Sample
  • Loading branch information
rookiejava authored Oct 9, 2018
2 parents adcac75 + ead036c commit e849846
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/TMDb/src/TMDb/TMDb/DetailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sample/TMDb/src/TMDb/TMDb/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async void MenuItemsView_ItemSelected(object sender, SelectedItemChangedEventArg

async Task<MovieListModel> LoadMovieListAsync(string menu)
{
var client = new TMDbLib.Client.TMDbClient("APIKEY");
var client = new TMDbLib.Client.TMDbClient(TMDbAPIKey.Key);
IList<SearchMovie> items = null;
if (menu == "Now playing")
{
Expand Down
8 changes: 8 additions & 0 deletions sample/TMDb/src/TMDb/TMDb/TMDbAPIKey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace TMDb
{
public class TMDbAPIKey
{
// https://www.themoviedb.org/documentation/api
public static readonly string Key = "APIKEY";
}
}

0 comments on commit e849846

Please sign in to comment.