Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add getToken and getSecret #11

Merged
merged 1 commit into from Apr 4, 2012

Conversation

Projects
None yet
2 participants
Contributor

robisaks commented Feb 13, 2012

For retrieval of secret and token from outside of the class.

@robisaks robisaks commented on the diff Feb 13, 2012

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;
@robisaks

robisaks Feb 13, 2012

Contributor

This can be accomplished by grabbing the token out of the preferences file, but I believe it makes sense for the method to be native to aQuery.

Owner

androidquery commented Feb 18, 2012

The getToken way might not work because it could be null.

Try this:
http://code.google.com/p/android-query/wiki/Authentication#Token_Only

androidquery added a commit that referenced this pull request Apr 4, 2012

Merge pull request #11 from robisaks/patch-1
Add getToken and getSecret

@androidquery androidquery merged commit 860a860 into androidquery:master Apr 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment