Movie Table #2

Merged
Berack merged 4 commits from movies into main 2026-01-20 12:12:56 +01:00
3 changed files with 37 additions and 1 deletions
Showing only changes of commit 1cce273057 - Show all commits

3
.gitignore vendored
View File

@@ -396,3 +396,6 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml
# =======
# MINE
APIKey.txt

View File

@@ -1,3 +1,12 @@
# test-alebro
Test per colloquio
Test per colloquio
## Istruzioni per l'esecuzione
Dopo aver clonato il repository, crea un file APIKey.txt nella cartella radice del progetto e inserisci l'API Key di OMDb.
Poi esegui il progetto con:
```bash
dotnet run
```

24
Services/OmdbService.cs Normal file
View File

@@ -0,0 +1,24 @@
class OmdbService
{
private readonly string url;
public OmdbService()
{
var apiKey = File.ReadAllText("APIKey.txt").Trim();
apiKey = System.Net.WebUtility.UrlEncode(apiKey);
url = "http://www.omdbapi.com/?apikey=" + apiKey + "&";
}
public async void FetchMovieDetail(string id)
{
// TODO
}
public async void FetchMovies(string searchTitle)
{
// TODO
}
}