Re: [twitter-dev] Streaming API (filter) and retweets, JSON Output

2010-08-15 Thread Mark McBride
A retweet will have an embedded retweeted_status object.  Example
(first one from spritzer, not necessarily a favorite):

{
  coordinates: null,
  favorited: false,
  created_at: Mon Aug 16 04:03:17 + 2010,
  truncated: false,
  retweeted_status: {
coordinates: null,
favorited: false,
created_at: Sun Aug 15 22:58:25 + 2010,
truncated: false,
contributors: null,
text: Do u ever feel like u don't belong? When u #LoveYourself
your ppl will find you! Belonging starts within! #TDL,
id: 21266102648,
geo: null,
in_reply_to_user_id: null,
user: {
  profile_sidebar_fill_color: ff,
  name: Mastin Kipp,
  profile_background_tile: true,
  profile_sidebar_border_color: 838581,
  location: The wise  classy place within,
  profile_image_url:
http://a0.twimg.com/profile_images/993737856/Picture_45_normal.png;,
  created_at: Mon Oct 20 17:22:57 + 2008,
  follow_request_sent: null,
  profile_link_color: 56a6ec,
  favourites_count: 559,
  contributors_enabled: false,
  url: http://www.TheDailyLove.com;,
  utc_offset: -32400,
  id: 16870682,
  profile_use_background_image: true,
  listed_count: 5701,
  protected: false,
  followers_count: 224270,
  profile_text_color: 707070,
  lang: en,
  verified: false,
  profile_background_color: ff,
  description: To make each day a fresh start sign up for our
FREE daily email at www.TheDailyLove.com - TDL was founded by 28yr old
@MastinKipp,
  time_zone: Alaska,
  geo_enabled: false,
  notifications: null,
  friends_count: 651,
  statuses_count: 7696,
  profile_background_image_url:
http://a1.twimg.com/profile_background_images/112686910/thedailylove_final_smllrwitter.jpg;,
  screen_name: TheDailyLove,
  following: null,
  show_all_inline_media: false
},
place: null,
in_reply_to_screen_name: null,
source: web,
in_reply_to_status_id: null
  },
  contributors: null,
  text: RT @TheDailyLove: Do u ever feel like u don't belong? When
u #LoveYourself your ppl will find you! Belonging starts within!
#TDL,
  id: 21285825400,
  geo: null,
  in_reply_to_user_id: null,
  user: {
profile_sidebar_fill_color: 3b0705,
name: Emillie Immaculate,
profile_background_tile: true,
profile_sidebar_border_color: 00,
location: Empire State Of Mind,
profile_image_url:
http://a2.twimg.com/profile_images/1069286198/ME_MYSELF_AND_I_normal.jpg;,
created_at: Mon Jun 15 07:41:33 + 2009,
follow_request_sent: null,
profile_link_color: b8100d,
favourites_count: 19,
contributors_enabled: false,
url: http://www.facebook.com/EmilyImmaculate;,
utc_offset: -18000,
id: 47286045,
profile_use_background_image: true,
listed_count: 5,
protected: false,
followers_count: 1225,
profile_text_color: 08,
lang: en,
verified: false,
profile_background_color: 663737,
description: Mind of a Billionaire,, Young entrepreneur in the making.,
time_zone: Eastern Time (US  Canada),
geo_enabled: false,
notifications: null,
friends_count: 62,
statuses_count: 3657,
profile_background_image_url:
http://a1.twimg.com/profile_background_images/133632534/wallpaper_marilyn_monroe.jpg;,
screen_name: EmilyImmaculate,
following: null,
show_all_inline_media: false
  },
  place: null,
  in_reply_to_screen_name: null,
  source: web,
  in_reply_to_status_id: null
}

   ---Mark

http://twitter.com/mccv



On Fri, Aug 13, 2010 at 9:54 AM, Joe joe.vivona.a...@gmail.com wrote:
 If we are listening to the stream api/filter using track and getting
 JSON output, I cannot see anywhere that I can determine if something
 is a retweet except explicitly checking the text of the tweet.

 Am I missing something or should I simultansously be listing to the
 retweet stream and try to cross match the 2 (that seems like a waste
 of resources).

 Any advice?



[twitter-dev] Streaming API (filter) and retweets, JSON Output

2010-08-13 Thread Joe
If we are listening to the stream api/filter using track and getting
JSON output, I cannot see anywhere that I can determine if something
is a retweet except explicitly checking the text of the tweet.

Am I missing something or should I simultansously be listing to the
retweet stream and try to cross match the 2 (that seems like a waste
of resources).

Any advice?