Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student
Accepted Solution

How to get Tweet ID with Twitter API ME V 1.9 ?

Hi.. '

 

I'm trying to make application with twitter integration..

Now i'm facing a problem which i don't know how to retweet..
And all i need to retweet is the tweet id itself..

Anyone know how to get the tweet id?

 

Regards,

 

Eric

Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: How to get Tweet ID with Twitter API ME V 1.9 ?

Hi,

 

When u use TweetER#post(tweetInstance), it returns you the same instance with additional info, have you checked this object. I guess ti shiuld contain the Tweet ID.

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student

Re: How to get Tweet ID with Twitter API ME V 1.9 ?

Sorry for late reply..

Can u show me sample code to get it?

I'm quite new to programming actually..

Thanks before.. Smiley Happy

Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: How to get Tweet ID with Twitter API ME V 1.9 ?

 

if (m.verifyCredential()) {
	Tweet t = new Tweet("Hi!!! This is my first tweet via Twitter API ME. \o/");
	TweetER ter = TweetER.getInstance(m);
	t = ter.post(t);
//Now, check this instance of "t" what properties it is having, I guess it should have tweet ID also. }

 

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
New Developer
Posts: 33
Registered: ‎07-15-2013
My Device: 9800
My Carrier: Student

Re: How to get Tweet ID with Twitter API ME V 1.9 ?

Ok..It works..

I can retweet now by using the tweet id..

Thanks a lot.. Smiley Happy



By the way, do u know any method to reply any tweet?
All i found is only post tweet, repost tweet and post geolocated tweet..