canmove, Confirmed users
2,745
edits
Bsternthal (talk | contribs) |
Bsternthal (talk | contribs) |
||
| Line 52: | Line 52: | ||
'''G+'''<br> | '''G+'''<br> | ||
Google does not appear to allow access to the raw share count, and AFAIK there is no public API for this | Google does not appear to allow access to the raw share count, and AFAIK there is no public API for this method. A possible workaround is to call the following url and extract the number. | ||
<pre> | <pre> | ||
https://plusone.google.com/_/+1/fastbutton?url=http://www.mozilla.org | https://plusone.google.com/_/+1/fastbutton?url=http://www.mozilla.org | ||
</pre> | </pre> | ||
This is | This is tricky because the number returned could be a string (1.6k) and will need to be normalized. | ||
Alternatively https://www.sharedcount.com/faq.php was recommended however it currently lists G+ as [https://www.sharedcount.com/faq.php inconsistent] so there is likely little value add to be gained by using this service and if G+ is required we should probably just use the native hack mentioned above. | Alternatively https://www.sharedcount.com/faq.php was recommended however it currently lists G+ as [https://www.sharedcount.com/faq.php inconsistent] so there is likely little value add to be gained by using this service and if G+ is required we should probably just use the native hack mentioned above. | ||