0.1.0 • Published 6 years ago
social-share-count-js v0.1.0
Social Share Count js
Get the social share counts from JavaScript Library
Demo Page
Table of contents
Quick start
Clone the repo:
git clone git@github.com:webcyou/social-share-count-js.gitInstall with Bower:
bower install social-share-count-jsInstall with npm:
npm install social-share-count-jsWhat's included
dist/
├── social-share-count.js
└── social-share-count.min.jsUsage
<script src="./social-share-count.min.js"></script>Example
<p data-sc-fb="URL"></p>API
In order to avoid cross domain constraint, JSONP communication is carried out.
Use API EndPoint
https://graph.facebook.com/https://jsoon.digitiminimi.com/twitter/count.jsonUse count.jsoonservice.
Registration of count.jsoon service is mandatory.
https://query.yahooapis.com/v1/public/yqlUse yahooapis service.
http://api.pinterest.com/v1/urls/count.jsonHatena BookMark
http://api.b.st-hatena.com/entry.countDOM Binding Type
<p data-sc-fb="URL"></p><p data-sc-tw="URL"></p><p data-sc-pk="URL"></p><p data-sc-pr="URL"></p>Hatena BookMark
<p data-sc-hb="URL"></p>Develop
npm run startBrowser starts using browser-sync.
Open http://localhost:3000 in your browser.
Option
Copyright and license
License: MIT
Daisuke Takayama
Creators
Daisuke Takayama