Using JTwitter without OAuth

71 views
Skip to first unread message

Eric Mill

unread,
Jan 1, 2012, 5:08:10 PM1/1/12
to jt...@googlegroups.com
Is there an easy way to integrate JTwitter into an Android app without needing to set up an OAuth dependency? 

Minor background: I've been using JTwitter v1.2.2 in my app, Congress, for a long while now (I give credit to JTwitter in the About dialog). I don't do anything that depends on OAuth, I just fetch various user's public timelines and display them in a basic list. I'd like to keep up with JTwitter's latest updates, but I don't think it'll be worth doing if I have to integrate OAuth code that I won't use.

-- Eric

Dobes Vandermeer

unread,
Jan 1, 2012, 7:58:53 PM1/1/12
to jt...@googlegroups.com
If you are literally only fetching public timelines then JTwitter is probably overkill anyway, you could get a JSON library instead and read the timeline directly and it wouldn't take you long to "roll your own".   Or just make your own fork of JTwitter and delete everything you don't use (including the dependency on OAuth).   I think the majority of JTwitter's functionality is related to authenticated operations like posting tweets, updating lists, and so on.  As long as your code works there's not much value in staying up to date with JTwitter's future updates, the way public timelines are fetched from the Twitter API probably won't change much in the next few years.

Eric Mill

unread,
Jan 2, 2012, 4:23:04 AM1/2/12
to jt...@googlegroups.com
You're probably right. I did at one point have my own Twitter JSON client, and switched to JTwitter because I supported replies in-app, which I ditched after they mandated OAuth support. I'll just leave it be.

-- Eric

Daniel Winterstein

unread,
Jan 2, 2012, 4:52:12 AM1/2/12
to jt...@googlegroups.com
You should be able to use JTwitter whilst ignoring the oauth stuff. If
you use the no-arg Twitter() constructor, and stay off the methods
that do require authentication. The Twitter class shouldn't have any
oauth dependencies itself.
Best regards,
- Daniel

--
--------------------------------------------------
Daniel Winterstein
Edinburgh
http://winterwell.com   http://soda.sh

Reply all
Reply to author
Forward
0 new messages