Dear People_connecting_social_accounts
Thanks to Yahia for twitter, 3yzko koloko t3mlo zayo =D ( including me
in tumblr)
everyone provide a method called get_feed that returns a list of
stories in the format of a story, for more clarification take a look
at Yahia's following methods in twitter_account :-
gbthalko hena arya7 =D
def get_feed(page=1)
self.config_twitter
#puts "getting the feed"
feed = Twitter.home_timeline(:page => page)
#puts feed
stories = Array.new
feed.each do |tweet|
temp = TwitterAccount.convert_tweet_to_story(tweet)
stories.push(temp)
end
#puts stories
stories
end
def self.convert_tweet_to_story(tweet)
#story = [author: tweet['user']['name'], text: tweet['text']]
story = Story.new
story.instance_variables
story.title = tweet['user']['name']
story.content = tweet['text']
#story.content = tweet['text']
story.category = 'twitter'
return story
end
so, i will just call twitter_account.get_feed ,
tumblr_account.get_feed, facebook_account.get_feed ,.....,...... and
so on
tell me for now the social networks u are going to implement in sprint
2 so that i can finish my work according to what we agreed on ( aw
according lely ana b2olholko =D )
Thanks
--
Essam Hafez
essamah...@gmail.com
+2 (0100) 1152697