Sha256: afb5d11760c579c0e51b7d1f4ed3cc992c47a3ba26860ad9e8385f0905b65058
Contents?: true
Size: 564 Bytes
Versions: 3
Compression:
Stored size: 564 Bytes
Contents
module ShareChecker module Providers class Tweetracker < Provider # Response sample # # { # "tweets":30, # "id":"4e281dcec546612414000004", # "users":26, # "query":"http://www.mcdonaldseurokids2012.com.ua/challenges/1/works/140" # } # def parse(response) doc = parse_json(response) doc.nil? ? 0 : doc["users"].to_i end def url "http://tracktweets.aimbulance.com/api/v1/groups/#{group_id}/urls/count.json?query=" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems