Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webcyou/social-share-count-js
Get the social share counts from JavaScript Library
https://github.com/webcyou/social-share-count-js
facebook hatena-bookmark javascript-library linkedin pinterest pocket social social-share-counts twitter
Last synced: about 1 month ago
JSON representation
Get the social share counts from JavaScript Library
- Host: GitHub
- URL: https://github.com/webcyou/social-share-count-js
- Owner: webcyou
- Created: 2017-03-27T22:10:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T13:57:54.000Z (over 5 years ago)
- Last Synced: 2024-04-24T18:55:25.534Z (8 months ago)
- Topics: facebook, hatena-bookmark, javascript-library, linkedin, pinterest, pocket, social, social-share-counts, twitter
- Language: JavaScript
- Size: 92.8 KB
- Stars: 10
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Social Share Count js
Get the social share counts from JavaScript Library## Demo Page
[Demo](https://webcyou.github.io/social-share-count-js/)## Table of contents
* [Quick start](#quick-start)
* [What's included](#What's-included)
* [Usage](#Usage)
* [API](#api)
* [Option](#Option)
* [Develop](#Develop)
* [Copyright and license](#copyright-and-license)## Quick start
**Clone the repo:**
```
git clone [email protected]:webcyou/social-share-count-js.git
```**Install with [Bower](http://bower.io):**
```
bower install social-share-count-js
```**Install with [npm](https://www.npmjs.com):**
```
npm install social-share-count-js
```
### What's included```
dist/
├── social-share-count.js
└── social-share-count.min.js
```### Usage
```html
```
Example
```html
```## API
In order to avoid cross domain constraint, JSONP communication is carried out.**Use API EndPoint**
**Facebook**
```
https://graph.facebook.com/
```**Twitter**
```
https://jsoon.digitiminimi.com/twitter/count.json
```
Use [count.jsoon](https://jsoon.digitiminimi.com/)service.Registration of count.jsoon service is mandatory.
**Pocket**
```
https://query.yahooapis.com/v1/public/yql
```
Use yahooapis service.**Pinterest**
```
http://api.pinterest.com/v1/urls/count.json
```**Hatena BookMark**
```
http://api.b.st-hatena.com/entry.count
```### DOM Binding Type
**Facebook**
```html
```**Twitter**
```html
```**Pocket**
```html
```**Pinterest**
```html
```**Hatena BookMark**
```html
```## Develop
```
npm run start
```
Browser starts using browser-sync.Open http://localhost:3000 in your browser.
## Option
## Copyright and license
#### License: MIT
#### Daisuke Takayama## Creators
**Daisuke Takayama**
* [@webcyou](https://twitter.com/webcyou)
* [@panicdragon](https://twitter.com/panicdragon)
*
*
*