Class: Crown::Google::PlusOne::URICounter

Inherits:
Object
  • Object
show all
Includes:
CGM::Countable
Defined in:
lib/crown/google/plusone/counter.rb

Overview

--------------------------------------------------------------- #

URICounter

NOTE: 現在,Google+1 のカウント数を取得するためには API key を要求される.そのため,暫定的な回避策としてサードパーティ から提供されている API を経由してカウント数を取得している.

Google+1 counts are retrieved via a JSON-RPC POST call. POST URL: https://clients6.google.com/rpc?key=<your_api_key> POST Body: [{"method":"pos.plusones.get","id":"p", "params":{"nolog":true,"id":"%%URL%%","source":"widget", "userId":"@viewer","groupId":"@self" }, "jsonrpc":"2.0","key":"p","apiVersion":"v1" }]

see also: http://sharedcount.com/

--------------------------------------------------------------- #

Method Summary

Methods included from CGM::Countable

#count, #error_value, #port