{"name":"count-shares-my-fork","version":"2.1.2","description":"Returns JSON with a number of shares for a URL (forked from count-shares with modifications)","main":"index.js","directories":{"test":"tests"},"dependencies":{"requestretry":"^1.12.0"},"devDependencies":{},"scripts":{"test":"node tests"},"repository":{"type":"git","url":"git+https://github.com/garrylachman/social-widgets.git"},"keywords":["shares","count","likes","tweets","social","networks","facebook","vk","vkontakte","odnoklassniki","twitter","linkedin"],"author":{"name":"garrylachman","email":"garry@lachman.co"},"license":"BSD","bugs":{"url":"https://github.com/garrylachman/social-widgets/issues"},"homepage":"https://github.com/garrylachman/social-widgets#readme","_id":"count-shares-my-fork@2.1.2","_npmVersion":"5.0.4","_nodeVersion":"8.0.0","_npmUser":{"name":"garrylachman","email":"garry@lachman.co"},"dist":{"integrity":"sha512-PS6WzM0M4fLfCpaHDSlumotkTRlu76DwCkLLmLuyUBpkFYpoQ/Jwwbw/8Ion6cJghEyuAJ86Fc91M7CZ5T68oA==","shasum":"86100d77325a8fcf66b09527df7a0b37efe91b7e","tarball":"https://r2.cnpmjs.org/count-shares-my-fork/-/count-shares-my-fork-2.1.2.tgz","size":3726},"maintainers":[{"name":"garrylachman","email":"garry@lachman.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/count-shares-my-fork-2.1.2.tgz_1498699929536_0.34385686786845326"},"_cnpmcore_publish_time":"2021-12-20T02:38:38.454Z","readme":"# count-shares\n\nReturns JSON with a number of shares for a URL.\n\n```\n{\n \"vk\": 135,\n \"pinterest\": 65401,\n \"tumblr\": 18,\n \"odnoklassniki\": 4,\n \"facebook\": 2353461,\n \"gplus\": 830508,\n \"stumbleupon\": 71811,\n \"linkedin\": 10586,\n \"hatena\": 606,\n \"mailru\": 224,\n \"pocket\": 50990\n}\n```\n\n## Example\n\n```\nvar countShares = require( 'count-shares' );\n\ncountShares.get( {\n url: 'http://google.com'\n}, function( err, result ) { } );\n```\n\n## Methods\n\n### get( conf, callback[, networks] )\n\n`conf`: {Object} An object defining config needed to make requests to different APIs.\n\n`conf.url`: {String} full URL. `www.domain.com` and `domain.com` are different websites for Twitter and Odnoklassniki.\n\nTwitter's old endpoint `http://urls.api.twitter.com/1/urls/count.json?url=` stopped work on November 20th, 2015, and according to this post there are no plans to replace it with anything in the short term.\n\n`callback( err, result )`: {Function} callback that will get the results and errors (if any)\n\n`networks`: (optional) {Array} or {String} available networks: facebook, linkedin, odnoklassniki, pinterest, vk (vkontakte), pocket, mail.ru, hatena, stumbleupon, gplus (Google Plus) . Need more? Contribute!\n\n\n## Changelog\n\n### 2.1.0\n\nContributed by Garry Lachman\n* Facebook API changed to public API + workaround.\n* Networks added: Google Plus, Stumbleupon, Main.ru, Pocket, Hatena.\n\n### 2.0.0\n\n* Facebook API changed. `FACEBOOK_ACCESS_TOKEN` is now required (https://github.com/clexit/social-widgets/pull/10)\n\n### 1.1.1\n\n* Catch parse errors during result parsing process\n\n### 1.1.0\n\n* Twitter API is deprecated\n* Odnoklassniki API URL changed\n"}