I would like to inform that Twitter API ME 1.4 has just been released. This new version comes with new features and the correction of a bug that was preventing it to work on Blackberry devices. So Blackberry developers, you all are now welcome back to Twitter API ME.
The new features available on version 1.4 are:
- Single Access Token auth
- Geo-located tweets
- Friends/Followers list
- Update user profile
Token = new Token("token_access", "token_secret");
Credential c =
new Credential("usrnm", "conKey", "conSec", token);
UserAccountManager m =
UserAccountManager.getInstance(c);
if (m.verifyCredential()) {
GeoLocation l = new GeoLocation("+37.5", "+26.7");
Tweet t = new Tweet(Geo-located tweet.", l);
TweetER ter = TweetER.getInstance(m);
t = ter.post(t);
}
Easy, huh?
For further information on Twitter API ME, please visit us at www.twitterapime.com.
See you in the next post...
15 comments:
Hi,
In order to use the API in a blackberry app, do I have to create a separate library app with the .jar file, or is there any other way to add the jar file to the BlackBerry Application Project.
Thanks in advance,
Bandi
You do not need to do this. Just add the jar file as a lib into your project.
I managed to import the jar. Everything works fine, until I try to post a tweet. It keeps throwing me "Invalid / Expired Token". Does this has something to do with Twitter's change to OAuth?
Thanks in advance,
Bandi
By chance, are you caching any token or something? If so, please do not do that. The only case you can keep a token is when you are using Single Token access auth, which you get from Twitter's website.
You do not need those lines:
XAuthSigner xc = new XAuthSigner(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);
xc.sign(new HttpRequest("http://api.twitter.com"), tok);
I really do not know where guys came with this from? I have not mentined anything of it in my examples. :)
Also pay attention on that tweet's content. You can't send two tweets with same text. Twitter ignores that.
The rest seems ok!
Heya¡my very first comment on your site. ,I have been reading your blog for a while and thought I would completely pop in and drop a friendly note. . It is great stuff indeed. I also wanted to ask..is there a way to subscribe to your site via email?
Mobile Applications Development
Hi,
As far as I know, receive updates via e-mail is not supported by Blogspot. On the other hand, there are other means to subribe to this blog in order to receive updates. In the side bar, there is a section called "Subscribe To". Check whether onde of those means fit for you.
Thanks for following us.
Regards,
Ernandes
Hi,
I have integrated Twitter Api Me 1.4 in my app.
I need to post a tweet but its not accepting my credentials i have tried with two different valid credentials but verifycredential is coming false:my code is as follow:
Credential c = new Credential(usrname,pass,conskey,conssec);
UserAccountManager m = UserAccountManager.getInstance(c);
try {
if (m.verifyCredential()) {
System.out.println("-------------------->User's credentials are OK! You're now logged in!");
} else {
System.out.println("---------------------->User name and/or password are invalid!");
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (LimitExceededException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Looking fwd for your valuable reply
Regards,
Gaurav
Hi,
Please, check those links below first, in order to see if you are not missing something:
http://kenai.com/projects/twitterapime/pages/Home#AuthxAuth
http://kenai.com/projects/twitterapime/pages/Home#VerifyUserCreds
Regards,
Ernandes
Single Access Token auth work for only 1 Twitter ID.
I want to use in my Blackberry application for posting status to different ID.
Hi, Mudassir
Please, take a look at this link:
http://kenai.com/projects/twitterapime/pages/Home#AuthxAuth
Regards,
Ernandes
Hi Ernandes
I am using twitter 1.6 jar file in my blackberry6.0 project all classess of tweeter is available to my project
i can build object but when i call any funtion it give me missing native error.
Please post the link to download
twitter_api_me-1.4.jar
Kind Regards,
Mohammad Abu Hmead
http://kenai.com/projects/twitterapime/downloads
Hi All,
I m using twitter_api_me 1.4,and whn i m trying to get xauth it returns false for verrifying credential.....may i know the reason why i m getting this?
Post a Comment