Sha256: fc61393d3decb4dc4810bcde37fd5011c938b2b917139d8d8e70c749937c5b06
Contents?: true
Size: 519 Bytes
Versions: 12
Compression:
Stored size: 519 Bytes
Contents
module Twitterland class TwitterGrader include HTTParty base_uri 'api.twittergrader.com/api' format :json # Get Twitter Grade for user # request your api key at [http://twitter.grader.com/accessrequestform # # Twitterland::TwitterGrader.grade('bradleyjoyce', 'OU812') def self.grade(username, api_key) data = get("/grade/#{username}.json", :query => {:APIKey => api_key}) data['ErrorMessage'].blank? ? data['Data']['Grade'].to_f : data['ErrorMessage'] end end end
Version data entries
12 entries across 12 versions & 2 rubygems