lib/share_counter.rb in share_counter-0.1.4 vs lib/share_counter.rb in share_counter-0.2.0
- old
+ new
@@ -42,10 +42,10 @@
return JSON.parse(html)['count']
end
def self.seomoz url, access_id, secret
client = Linkscape::Client.new(accessID: access_id, secret: secret)
- response = client.urlMetrics(get_host_without_www(url), cols: :all)
+ response = client.urlMetrics(url, cols: :all)
{ mozrank: response.data['source'][:mozrank], page_authority: response.data['source'][:page_authority], domain_authority: response.data['source'][:domain_authority]}
end
def self.supported_networks
%w(reddit twitter facebook linkedin stumbleupon pinterest)