Skip to content
Browse files

Add getToken and getSecret for retrieval of secret and token from out…

…side of the class.
  • Loading branch information...
1 parent c3e09f4 commit 6584483c6b0b57f9239f506126695659ce6e3f46 @robisaks robisaks committed Feb 13, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 auth/com/androidquery/auth/TwitterHandle.java
View
7 auth/com/androidquery/auth/TwitterHandle.java
@@ -146,7 +146,12 @@ private String fetchToken(String key){
private void storeToken(String key1, String token1, String key2, String token2){
PreferenceManager.getDefaultSharedPreferences(act).edit().putString(key1, token1).putString(key2, token2).commit();
}
-
+ public String getToken(){
+ return this.token;
+ }
+ public String getSecret(){
+ return this.secret;
+ }
private String extract(String url, String param){
Uri uri = Uri.parse(url);

0 comments on commit 6584483

Please sign in to comment.
Something went wrong with that request. Please try again.