node-trakt is a wrapper for the trakt.tv API. It supports:
npm install node-trakt
var trakt = "api-key";// Get movie information for The Lone Ranger (2013)trakt;
params(Optional) An object containing the parameters for the API call. Arrays will be converted/joined to strings if the method is a GET method for convenience.
callbackCalled after the request completed. If an error ocurred
errwill contain the Error object, otherwise it will be null. The parsed JSON data is returned in
API methods are generated by joining the parts of the path, uppercasing every part. (e.g.
If a required parameter is omitted, no request is made to the server and instead an error is returned.
This function will pass an
auth header for every request if user credentials are provided.
Check out the trakt.tv API docs for documentation on all methods and their parameters.
passwordCan be either the password in plain text or the SHA1 encoded password.
callbackWill be called after testing the credentials with
loggedInbeing the succes value of the login.
Sets the username and password in an options object so they can later be used in API requests. Tests if the credentials are valid using API method
confirmed(Default = true) Whether the login credentials should be confirmed for this function to regard the user logged in. If this is set to false, the function will return true if credentials were provided using
returnsTrue if the user is logged in, false if not.
Use this to check if the user is logged in.