Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
http://api-public.addthis.com/url/shares.json?url=http://google.com
我需要将共享数量作为 php 字符串获取。(回声)
有什么简单的方法可以做到这一点吗?
$ret = json_decode(file_get_contents('http://api-public.addthis.com/url/shares.json?url=http://google.com'), true); echo $ret['shares'];