No commit activity in last 3 years
No release in over 3 years
Social Feed Agregator
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 1.8.0
~> 1.6.0
~> 1.6.0
~> 4.6.2
~> 1.6.1
 Project Readme

SocialFeedAgregator

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'social_feed_agregator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install social_feed_agregator

Usage

## 1. Create reader for some social service (available Facebook, Twitter, Pinterest, GooglePlus)

fb = SFA::Facebook.new ({      
  facebook_app_id:            "FACEBOOK_APP_ID", 
  facebook_app_secret:        "FACEBOOK_APP_SECRET",  
  facebook_user_name:         "FACEBOOK_USER_NAME"
})

tw = SFA::Twitter.new ({      
  twitter_consumer_key:       "TWITTER_CONSUMER_KEY", 
  twitter_consumer_secret:    "TWITTER_CONSUMER_SECRET",
  twitter_oauth_token:        "TWITTER_OAUTH_TOKEN",
  twitter_oauth_token_secret: "TWITTER_OAUTH_TOKEN_SECRET",
  twitter_user_name:          "TWITTER_USER_NAME"      
})

pins = SFA::Pinterest.new ({
  pinterest_user_name:        "PINTEREST_USER_NAME"
})

gp = SFA::Googleplus.new ({
  googleplus_user_id: "GOOGLEPLUS_USER_ID",
  googleplus_api_key: "GOOGLEPLUS_API_KEY"
})


## 2. Get data

res = []
    
# Default 25
fb.get_feeds(count: 2) do |feed|
  res << feed
end

# Default 25
tw.get_feeds(count: 2) do |feed|
  res << feed
end

# Default 25
pins.get_feeds(count: 2) do |feed|
  res << feed
end

# Default 25
gp.get_feeds(count: 2) do |feed|
  res << feed
end

res.sort!{|a, b| a.created_at <=> b.created_at}

res.to_json

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request