-
Notifications
You must be signed in to change notification settings - Fork 1
C# API Wrapper (.Net 4.5 async - MVC) for making Netflix requests (Signed and Protected) and Rotten Tomatoes requests for Movie/Actor information
License
donomans/FlixSharp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A C# .Net 4.5 (async) Netflix, Rotten Tomatoes, Amazon API Wrapper for doing all major API actions
Netflix:
- OAuth Logins/requests
- Search (Catalog/Title, Catalog/Autocomplete, Catalog/People)
- Title expansion
- Person expansion
(Todo) - User actions (Add/Modify/View user details)
Rotten Tomatoes:
- Search
- Lists (Movies/DVDs)
- Title Info (Movies Info)
- Cast Info
- Movie Clips
- Movie Reviews
- Similar Movies
- Movies by Alias (search by IMDB id)
Amazon:
(Todo) - Search
(Todo) - Title details (Pricing and buy links)
Examples:
Netflix:
1) Setup:
using FlixSharp;
/// set up the Netflix keys
Netflix.Login.SetCredentials(
"Consumer Key",
"Shared Secret",
"Application Name");
/// pass a method that will return a FlixSharp.Holders.Account
/// value based on the current logged in user (in MVC or wherever else this is used)
/// to allow for requests to be automatically made on user's behalf
/// this will be used whenever it is appropriate
Netflix.SetMethodForGettingCurrentUserAccount(GetCurrentUserNetflixUserInfo);
2) Searching:
/// Search method will search both Title catalog and People catalog
SearchResults sr = await Netflix.Search.Search("The Godfather");
/// SearchTitle searches Title catalog
Titles t = await Netflix.Search.SearchTitles("The Godfather");
/// SearchPeople searches People catalog
People p = await Netflix.Search.SearchPeople("Al Pacino");
/// AutoCompleteTitle searches the autocomplete title catalog
var titlelist = await Netflix.Search.AutoCompleteTitle("The Godfather");
3) Title / People filling
Title thegodfather = await Netflix.Fill.GetCompleteTitle("http://api-public.netflix.com/catalog/titles/movies/60011152");
///or
Title thegodfather = await Netflix.Fill.GetCompleteTitle("60011152", NetflixType.Movie);
About
C# API Wrapper (.Net 4.5 async - MVC) for making Netflix requests (Signed and Protected) and Rotten Tomatoes requests for Movie/Actor information
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published