1.0.4 • Published 8 years ago

count-shares-fix v1.0.4

Weekly downloads
2
License
BSD
Repository
github
Last release
8 years ago

count-shares

Returns JSON with a number of shares for a URL.

**This is a modified copy of the original. Removed twitter, odnoklassniki, and the others. Only facebook is left.

{
    "facebook": 5461703,
}

Example

var countShares = require( 'count-shares' );

countShares.get( 'http://google.com', function( err, result ) {  } );

Methods

get( url, callback, networks )

url: {String} full URL. www.domain.com and domain.com are different websites for Twitter and Odnoklassniki.

callback( err, result ): {Function} callback that will get the results and errors (if any)

networks: (optional) {Array} or {String} available networks: facebook, twitter, linkedin, odnoklassniki, pinterest, vk (vkontakte). Need more? Contribute!