suxinmin / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Enhancement for TwitterHandle Class #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I've been playing around with android-query. Nice work so far, i like the 
philosophy of the lib.

I have a very small enhancement to propose for the TwitterHandle class.
I would like to be able to set in a TwitterHandle instance the Access Token and 
the Access Token Secret provided for my app by twitter. It can permit to be 
able to use it this way: 
https://dev.twitter.com/docs/auth/oauth/single-user-with-examples

In a case where you only want to read a user timeline you might not want make 
everyone authorize your app for just a simple read and consider that everyone 
just reading uses the account of a user  who has already authorized your app.

Currently it's not possible. I found a workaround reading your code. I save the 
values in the preferences before initializing the TwitterHandle object. This 
way your lib uses it reading it from the preferences. But it might be cleaner 
to provide a simple way to set the access token and access token secret.

brgds

Guilhem

Original issue reported on code.google.com by guilhem....@gmail.com on 12 Dec 2012 at 2:15

GoogleCodeExporter commented 9 years ago
Please change it to enhancement and not issue.

Original comment by guilhem....@gmail.com on 12 Dec 2012 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by tinyeeliu@gmail.com on 14 Dec 2012 at 9:52