OMDB_API_Wrapper 1.1.2
See the version list below for details.
dotnet add package OMDB_API_Wrapper --version 1.1.2
NuGet\Install-Package OMDB_API_Wrapper -Version 1.1.2
<PackageReference Include="OMDB_API_Wrapper" Version="1.1.2" />
paket add OMDB_API_Wrapper --version 1.1.2
#r "nuget: OMDB_API_Wrapper, 1.1.2"
// Install OMDB_API_Wrapper as a Cake Addin #addin nuget:?package=OMDB_API_Wrapper&version=1.1.2 // Install OMDB_API_Wrapper as a Cake Tool #tool nuget:?package=OMDB_API_Wrapper&version=1.1.2
OMDB_API_Wrapper
Current Release: Version 1.1.2
Description
An easy-to-use API wrapper/client for the Open Movie Database / OMDB API, which can be used in any .NET project. Available as a DLL library and a NuGet package. This library focuses on being easy to understand, simple to use and offer full coverage of features offered by the OMDB API. Terminology used by this library is strongly associated to the official OMDB API documentation found online at http://www.omdbapi.com/
Download Links
Download the NuGet Package here: https://www.nuget.org/packages/OMDB_API_Wrapper/
Download the DLL library here: https://github.com/mrama030/OMDB_API_Wrapper/tree/master/OMDB_API_Wrapper/OMDB_API_Wrapper/bin/Debug/netstandard2.0/OMDB_API_Wrapper.dll
How to use?
All OMDB_API_Wrapper public classes and public methods available for use by developers have been XML-documented. This means you may access this documentation through your IDE (i.e. hover over method or class) or read it directly within the source code in this GitHub repository. Examples below should also be referenced.
Summary of Response Types Generated for each Request Type
Request Type | Response Type |
---|---|
ByTitleRequest | ByTitleResponse |
ByIDRequest | ByTitleResponse |
BySearchRequest | BySearchResponse |
Examples (C#)
OMDB API Client Creation
OmdbClient omdbClient = new OmdbClient("YOUR_API_KEY");
API Key Validation
// Asynchronous
bool isKeyValidAsync = await omdbClient.IsAPIKeyValidAsync();
// Synchronous
bool isKeyValidSync = omdbClient.IsAPIKeyValidSync();
ByTitleRequest Creation
// Basic - No optional parameters - Short plot
ByTitleRequest byTitleRequestBasic = new ByTitleRequest("rick and morty");
// Detailed - With optional parameters - Full plot
ByTitleRequest byTitleRequestDetailed = new ByTitleRequest("rick and morty", VideoType.Series, null, PlotSize.Full);
ByTitleRequest Execution
// Asynchronous
ByTitleResponse byTitleResponseAsync = await omdbClient.ByTitleRequestAsync(byTitleRequestBasic);
// Synchronous
ByTitleResponse byTitleResponseSync = omdbClient.ByTitleRequestSync(byTitleRequestBasic);
ByIDRequest Creation
// Short plot
ByIDRequest byIDRequestShortPlot = new ByIDRequest("tt1219827");
// Full plot
ByIDRequest byIDRequestFullPlot = new ByIDRequest("tt1219827", PlotSize.Full);
ByIDRequest Execution (Responses are ByTitleResponse objects)
// Asynchronous
ByTitleResponse byIDResponseAsync = await omdbClient.ByIDRequestAsync(byIDRequestShortPlot);
// Synchronous
ByTitleResponse byIDResponseSync = omdbClient.ByIDRequestSync(byIDRequestShortPlot);
BySearchRequest Creation
// All Results - No optional parameters
BySearchRequest bySearchRequestAll = new BySearchRequest("ghost in the shell");
// Page 2 Only (Results 11 to 20 only) - No optional parameters
BySearchRequest bySearchRequestPageSpecific = new BySearchRequest("ghost in the shell", null, null, 2);
// All Results - With optional parameters
BySearchRequest bySearchRequestFiltered = new BySearchRequest("ghost in the shell", VideoType.Movie, 2017);
BySearchRequest Execution
// Asynchronous
BySearchResponse bySearchResponseAsync = await omdbClient.BySearchRequestAsync(bySearchRequestAll);
// Synchronous
BySearchResponse bySearchResponseSync = omdbClient.BySearchRequestSync(bySearchRequestAll);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added MIT License