C# Class TraktRater.TraktAPI.TraktAPI

Object that communicates with the Trakt API
Mostrar archivo Open project: damienhaynes/TraktRater

Public Methods

Method Description
AddEpisodesToWatchedHistory ( TraktEpisodeWatchedSync syncData ) : TraktSyncResponse

Sends episode watched sync data to Trakt

AddEpisodesToWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse

Sends episode sync data to Trakt Watchlist

AddItemsToList ( string id, TraktSyncAll items, string username = "me" ) : TraktSyncResponse
AddMoviesToRatings ( TraktMovieRatingSync data ) : TraktSyncResponse

Rates a list of movies on trakt

AddMoviesToWatchedHistory ( TraktMovieWatchedSync syncData ) : TraktSyncResponse

Sends movies watched sync data to Trakt

AddMoviesToWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse

Sends movie sync data to Trakt Watchlist

AddShowsToRatings ( TraktShowRatingSync data ) : TraktSyncResponse

Rates a list of shows on trakt

AddShowsToWatchlist ( TraktShowSync syncData ) : TraktSyncResponse

Sends show sync data to Trakt Watchlist

AddsEpisodesToRatings ( TraktEpisodeRatingSync data ) : TraktSyncResponse

Rates a list of episodes on trakt

CreateCustomList ( TraktList list, string username = "me" ) : TraktListDetail
DeleteCustomList ( string listId, string username = "me" ) : bool
GetCollectedMovies ( ) : IEnumerable

Returns the current users collected movies

GetCollectedShows ( ) : IEnumerable

Returns the current users collected episodes

GetCustomListItems ( string listId, string username = "me", string extendedInfoParams = "min" ) : IEnumerable
GetCustomLists ( string username = "me" ) : IEnumerable

Returns all custom lists for a user

GetOAuthToken ( string key ) : TraktOAuthToken

Login to trakt to request a user access token for all subsequent requests

GetRatedEpisodes ( ) : IEnumerable

Returns the current users Rated Episodes

GetRatedMovies ( ) : IEnumerable

Returns the current users Rated Movies

GetRatedSeasons ( ) : IEnumerable

Returns the current users Rated Seasons

GetRatedShows ( ) : IEnumerable

Returns the current users Rated Shows

GetUserToken ( ) : TraktUserToken

Login to trakt to request a user token for all subsequent requests

GetWatchedMovies ( ) : IEnumerable

Returns the current users watched movies and play counts

GetWatchedShows ( ) : IEnumerable

Returns the current users watched episodes and play counts

GetWatchlistEpisodes ( ) : IEnumerable

Returns the current users watchlist episodes

GetWatchlistMovies ( ) : IEnumerable

Returns the current users watchlist movies

GetWatchlistSeasons ( ) : IEnumerable

Returns the current users watchlist seasons

GetWatchlistShows ( ) : IEnumerable

Returns the current users watchlist shows

RemoveEpisodesFromRatings ( TraktEpisodeSync syncData ) : TraktSyncResponse

Removes all episode ratings from trakt

RemoveEpisodesFromWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse

Removes all episodes from watchlist from trakt

RemoveMoviesFromCollection ( TraktMovieSync syncData ) : TraktSyncResponse

Removes movies from users collection

RemoveMoviesFromRatings ( TraktMovieSync syncData ) : TraktSyncResponse

Removes all movie ratings from trakt

RemoveMoviesFromWatchedHistory ( TraktMovieSync syncData ) : TraktSyncResponse

Removes movies from users watched history

RemoveMoviesFromWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse

Removes all movies from watchlist from trakt

RemoveSeasonsFromRatings ( TraktSeasonSync syncData ) : TraktSyncResponse

Removes all season ratings from trakt

RemoveSeasonsFromWatchlist ( TraktSeasonSync syncData ) : TraktSyncResponse

Removes all seasons from watchlist from trakt

RemoveShowsFromCollection ( TraktShowSync syncData ) : TraktSyncResponse

Removes all episodes for each show in users collection

RemoveShowsFromRatings ( TraktShowSync syncData ) : TraktSyncResponse

Removes all show ratings from trakt

RemoveShowsFromWatchedHistory ( TraktShowSync syncData ) : TraktSyncResponse

Removes all episodes for each show in users watched history

RemoveShowsFromWatchlist ( TraktShowSync syncData ) : TraktSyncResponse

Removes all shows from watchlist from trakt

Private Methods

Method Description
GetOAuthLogin ( string key ) : string

Gets a oAuth Login object

GetUserLogin ( ) : string

Gets a User Login object

Method Details

AddEpisodesToWatchedHistory() public static method

Sends episode watched sync data to Trakt
public static AddEpisodesToWatchedHistory ( TraktEpisodeWatchedSync syncData ) : TraktSyncResponse
syncData TraktEpisodeWatchedSync The sync data to send
return TraktSyncResponse

AddEpisodesToWatchlist() public static method

Sends episode sync data to Trakt Watchlist
public static AddEpisodesToWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync The sync data to send
return TraktSyncResponse

AddItemsToList() public static method

public static AddItemsToList ( string id, TraktSyncAll items, string username = "me" ) : TraktSyncResponse
id string
items TraktSyncAll
username string
return TraktSyncResponse

AddMoviesToRatings() public static method

Rates a list of movies on trakt
public static AddMoviesToRatings ( TraktMovieRatingSync data ) : TraktSyncResponse
data TraktMovieRatingSync The object containing the list of movies to be rated
return TraktSyncResponse

AddMoviesToWatchedHistory() public static method

Sends movies watched sync data to Trakt
public static AddMoviesToWatchedHistory ( TraktMovieWatchedSync syncData ) : TraktSyncResponse
syncData TraktMovieWatchedSync The sync data to send
return TraktSyncResponse

AddMoviesToWatchlist() public static method

Sends movie sync data to Trakt Watchlist
public static AddMoviesToWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync The sync data to send
return TraktSyncResponse

AddShowsToRatings() public static method

Rates a list of shows on trakt
public static AddShowsToRatings ( TraktShowRatingSync data ) : TraktSyncResponse
data TraktShowRatingSync The object containing the list of shows to be rated
return TraktSyncResponse

AddShowsToWatchlist() public static method

Sends show sync data to Trakt Watchlist
public static AddShowsToWatchlist ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync The sync data to send
return TraktSyncResponse

AddsEpisodesToRatings() public static method

Rates a list of episodes on trakt
public static AddsEpisodesToRatings ( TraktEpisodeRatingSync data ) : TraktSyncResponse
data TraktEpisodeRatingSync The object containing the list of episodes to be rated
return TraktSyncResponse

CreateCustomList() public static method

public static CreateCustomList ( TraktList list, string username = "me" ) : TraktListDetail
list TraktList
username string
return TraktListDetail

DeleteCustomList() public static method

public static DeleteCustomList ( string listId, string username = "me" ) : bool
listId string
username string
return bool

GetCollectedMovies() public static method

Returns the current users collected movies
public static GetCollectedMovies ( ) : IEnumerable
return IEnumerable

GetCollectedShows() public static method

Returns the current users collected episodes
public static GetCollectedShows ( ) : IEnumerable
return IEnumerable

GetCustomListItems() public static method

public static GetCustomListItems ( string listId, string username = "me", string extendedInfoParams = "min" ) : IEnumerable
listId string
username string
extendedInfoParams string
return IEnumerable

GetCustomLists() public static method

Returns all custom lists for a user
public static GetCustomLists ( string username = "me" ) : IEnumerable
username string Username of person's list
return IEnumerable

GetOAuthToken() public static method

Login to trakt to request a user access token for all subsequent requests
public static GetOAuthToken ( string key ) : TraktOAuthToken
key string Set this to a PinCode for first time oAuth otherwise your previous Access Token
return TraktOAuthToken

GetRatedEpisodes() public static method

Returns the current users Rated Episodes
public static GetRatedEpisodes ( ) : IEnumerable
return IEnumerable

GetRatedMovies() public static method

Returns the current users Rated Movies
public static GetRatedMovies ( ) : IEnumerable
return IEnumerable

GetRatedSeasons() public static method

Returns the current users Rated Seasons
public static GetRatedSeasons ( ) : IEnumerable
return IEnumerable

GetRatedShows() public static method

Returns the current users Rated Shows
public static GetRatedShows ( ) : IEnumerable
return IEnumerable

GetUserToken() public static method

Login to trakt to request a user token for all subsequent requests
public static GetUserToken ( ) : TraktUserToken
return TraktUserToken

GetWatchedMovies() public static method

Returns the current users watched movies and play counts
public static GetWatchedMovies ( ) : IEnumerable
return IEnumerable

GetWatchedShows() public static method

Returns the current users watched episodes and play counts
public static GetWatchedShows ( ) : IEnumerable
return IEnumerable

GetWatchlistEpisodes() public static method

Returns the current users watchlist episodes
public static GetWatchlistEpisodes ( ) : IEnumerable
return IEnumerable

GetWatchlistMovies() public static method

Returns the current users watchlist movies
public static GetWatchlistMovies ( ) : IEnumerable
return IEnumerable

GetWatchlistSeasons() public static method

Returns the current users watchlist seasons
public static GetWatchlistSeasons ( ) : IEnumerable
return IEnumerable

GetWatchlistShows() public static method

Returns the current users watchlist shows
public static GetWatchlistShows ( ) : IEnumerable
return IEnumerable

RemoveEpisodesFromRatings() public static method

Removes all episode ratings from trakt
public static RemoveEpisodesFromRatings ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync list of episodes
return TraktSyncResponse

RemoveEpisodesFromWatchlist() public static method

Removes all episodes from watchlist from trakt
public static RemoveEpisodesFromWatchlist ( TraktEpisodeSync syncData ) : TraktSyncResponse
syncData TraktEpisodeSync list of episodes
return TraktSyncResponse

RemoveMoviesFromCollection() public static method

Removes movies from users collection
public static RemoveMoviesFromCollection ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of shows
return TraktSyncResponse

RemoveMoviesFromRatings() public static method

Removes all movie ratings from trakt
public static RemoveMoviesFromRatings ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of movies
return TraktSyncResponse

RemoveMoviesFromWatchedHistory() public static method

Removes movies from users watched history
public static RemoveMoviesFromWatchedHistory ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of shows
return TraktSyncResponse

RemoveMoviesFromWatchlist() public static method

Removes all movies from watchlist from trakt
public static RemoveMoviesFromWatchlist ( TraktMovieSync syncData ) : TraktSyncResponse
syncData TraktMovieSync list of movies
return TraktSyncResponse

RemoveSeasonsFromRatings() public static method

Removes all season ratings from trakt
public static RemoveSeasonsFromRatings ( TraktSeasonSync syncData ) : TraktSyncResponse
syncData TraktSeasonSync list of shows with seasons
return TraktSyncResponse

RemoveSeasonsFromWatchlist() public static method

Removes all seasons from watchlist from trakt
public static RemoveSeasonsFromWatchlist ( TraktSeasonSync syncData ) : TraktSyncResponse
syncData TraktSeasonSync list of shows with seasons
return TraktSyncResponse

RemoveShowsFromCollection() public static method

Removes all episodes for each show in users collection
public static RemoveShowsFromCollection ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
return TraktSyncResponse

RemoveShowsFromRatings() public static method

Removes all show ratings from trakt
public static RemoveShowsFromRatings ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
return TraktSyncResponse

RemoveShowsFromWatchedHistory() public static method

Removes all episodes for each show in users watched history
public static RemoveShowsFromWatchedHistory ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
return TraktSyncResponse

RemoveShowsFromWatchlist() public static method

Removes all shows from watchlist from trakt
public static RemoveShowsFromWatchlist ( TraktShowSync syncData ) : TraktSyncResponse
syncData TraktShowSync list of shows
return TraktSyncResponse