people connecting social accounts

0 views
Skip to first unread message

Essam Hafez

unread,
May 13, 2012, 8:21:58 AM5/13/12
to smartsoft-c2-12
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

Essam Hafez

unread,
May 13, 2012, 10:38:58 AM5/13/12
to smartsoft-c2-12
b3'd elnzr en lsa m7desh rd

fe elbacklog elmfrod we are working on twitter,Facebook,tumblr and flickr
so 73ml sho3'ly 3la el 4 dol.

another thing @Yahya, 7n3ml Model SocialAccounts w elaccounts
byinherito meno, wla kol account 7yb2a on its own.
3ashan am working accordingly, elmethod bta3t 2.11 3mltha based en kol
wa7d lw7do bs eltests kona 2olna work for twitter now till we decide
...

ra2ye kol wa7d lw7do and am doing my checks for the 4 social networks we have.

Yahia El Gamal

unread,
May 13, 2012, 12:25:25 PM5/13/12
to smartso...@googlegroups.com
Sorry for the late reply :$

First, we are going to hook (hopefully) facebook, flickr and tumblr and twitter. 

I really want to make the SociaAccounts abstraction. But it's useless if we aren't completely sure of how we are going to group the common features between social accounts. 

--
Yahia

Reply all
Reply to author
Forward
0 new messages