1 | <?php |
||
8 | class Odnoklassniki extends ProviderBase implements ProviderInterface |
||
9 | { |
||
10 | protected $countField = 'share_ok'; |
||
11 | |||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | public function shareUrl() |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function shareCountRequest() |
||
47 | |||
48 | /** |
||
49 | * http://api.mail.ru/docs/reference/v4/sharecount/ |
||
50 | * Sample answer: |
||
51 | * { |
||
52 | * "share_mm": 45037, // # of shares in my.mail.ru |
||
53 | * "share_ok": 14617 // # of shares in Odnoklassniki |
||
54 | * }. |
||
55 | * |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function shareCount($response) |
||
68 | } |
||
69 |