|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TwitterService
The Twitter service.
| Method Summary | |
|---|---|
boolean |
createUserWithTwitter(String modelName,
String smUsername,
String token,
String tokenSecret)
Creates a user with the given StackMob username and Twitter token and token secret. |
String |
findAndVerifyUser(String modelName,
String twUserId)
Finds a StackMob user with the given Twitter user ID and then verifies the user's credentials are valid. |
String |
findAndVerifyUser(String modelName,
String token,
String tokenSecret)
Finds a StackMob user with the given Twitter token and token secret and then verifies the user's credentials are valid. |
String |
findUsername(String modelName,
String twUserId)
Finds a StackMob username given the associated Twitter user ID. |
boolean |
linkUserWithTwitter(String modelName,
String smUsername,
String token,
String tokenSecret)
Links an existing user with the Twitter user identified by the given token and token secret. |
boolean |
updateStatus(String modelName,
String smUsername,
String statusMsg)
Updates a user's Twitter status with the given message. |
boolean |
verifyCredentials(String modelName,
String smUsername)
Verifies a user's Twitter credentials. |
| Method Detail |
|---|
boolean createUserWithTwitter(String modelName,
String smUsername,
String token,
String tokenSecret)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationsmUsername - the StackMob usernametoken - the Twitter tokentokenSecret - the Twitter token secret
TwitterServiceException - if an exception has occurred in the Twitter service
boolean linkUserWithTwitter(String modelName,
String smUsername,
String token,
String tokenSecret)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationsmUsername - the StackMob usernametoken - the Twitter tokentokenSecret - the Twitter token secret
TwitterServiceException - if an exception has occurred in the Twitter service
String findAndVerifyUser(String modelName,
String token,
String tokenSecret)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationtoken - the Twitter TokentokenSecret - the Twitter token secret
TwitterServiceException - if an exception has occurred in the Twitter service
String findAndVerifyUser(String modelName,
String twUserId)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationtwUserId - the Twitter user ID
TwitterServiceException - if an exception has occurred in the Twitter service
String findUsername(String modelName,
String twUserId)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationtwUserId - the Twitter user ID
TwitterServiceException - if an exception has occurred in the Twitter service
boolean updateStatus(String modelName,
String smUsername,
String statusMsg)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationsmUsername - the StackMob usernamestatusMsg - the status message
TwitterServiceException - if an exception has occurred in the Twitter service
boolean verifyCredentials(String modelName,
String smUsername)
throws TwitterServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationsmUsername - the StackMob username
TwitterServiceException - if an exception has occurred in the Twitter service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||