com.jakewharton.trakt.services
Class AccountService

java.lang.Object
  extended by com.jakewharton.apibuilder.ApiService
      extended by com.jakewharton.trakt.TraktApiService
          extended by com.jakewharton.trakt.services.AccountService

public class AccountService
extends TraktApiService


Nested Class Summary
static class AccountService.CreateBuilder
           
static class AccountService.TestBuilder
           
 
Field Summary
 
Fields inherited from class com.jakewharton.apibuilder.ApiService
CONTENT_ENCODING
 
Constructor Summary
AccountService()
           
 
Method Summary
 AccountService.CreateBuilder create(String username, String password, String email)
          Create a new trakt account.
 AccountService.TestBuilder test()
          Test trakt credentials.
 
Methods inherited from class com.jakewharton.trakt.TraktApiService
get, post, setApiKey, setAuthentication, setMediaCenterDate, setMediaCenterVersion, setPluginVersion, setUseSsl, unmarshall, unmarshall, unmarshall
 
Methods inherited from class com.jakewharton.apibuilder.ApiService
acceptGzip, addRequestHeader, closeConnection, closeStream, convertStreamToString, executeDelete, executeDelete, executeGet, executeGet, executeMethod, executePost, executePost, getConnectTimeout, getParametersString, getReadTimeout, getRequestHeader, getRequestHeaderNames, getWrappedInputStream, removeRequestHeader, setConnectTimeout, setReadTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountService

public AccountService()
Method Detail

create

public AccountService.CreateBuilder create(String username,
                                           String password,
                                           String email)
Create a new trakt account. Username and e-mail must be unique and not already exist in trakt.

Parameters:
username - Username to register.
password - SHA1 hash of password.
email - E-mail to register, a welcome email will automatically be sent here.
Returns:
Builder instance.

test

public AccountService.TestBuilder test()
Test trakt credentials. This is useful for your configuration screen and is a simple way to test someone's trakt account.

Returns:
Builder instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.