Sha256: d7fa5487f1fd67ea8b33d5ac10467ed0068cc803f28582fa8619f955641756bb
Contents?: true
Size: 515 Bytes
Versions: 5
Compression:
Stored size: 515 Bytes
Contents
module ShareChecker module Providers class Vkontakte < Provider # Response sample # # {"response":{"count":1054,"users":[136685987,30523343,144263601,9428152,67880464,9770301,5702433,...]}} # def parse(response) doc = parse_json(response) doc && doc["response"] ? doc["response"]["count"].to_i : 0 end def url "https://api.vkontakte.ru/method/likes.getList?type=sitepage&owner_id=#{app_id}&page_url=" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems