Sha256: 96186ab44fae2840676900bbfed3d9c82107a48e4c096096794e02b2b4059315
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
# Ruby PostRank API Wrapper PostRank API wrapper for Ruby 1.9. * EventMachine & Fibers under the hood - async friendly. * Can be used outside of an EM loop - wrapper will spin up and shut down the reactor on demand. For complete documentation on all endpoints please see [PostRank API Docs](http://apidocs.postrank.com) ## A few simple examples require "postrank-api" api = PostRank::API.new('my-appkey') # map a site to postrank id's + retrieve feed meta data igvita = api.feed_info('igvita.com') # grab the latest stories from igvita.com feed = api.feed(igvita['id']) # grab the top recent post from igvita.com top = api.top_posts(igvita['id'], :num => 1) # lookup the engagement score for the past two days eng = api.feed_engagement(igvita['id'], :start_time => 'yesterday') # lookup social metrics for a url metrics = api.metrics('http://www.igvita.com/') # get recommended feeds recommendations = api.recommendations(igvita['id']) # lookup thematic postranks for given posts postrank = api.postrank(top['items'].collect!{|info| info['original_link']}) # lookup metrics history for a given post hash history = api.postrank(top['items'].first['id'])
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postrank-api-0.4.0 | README.md |
postrank-api-0.2.0 | README.md |