* Fetch the remote Pin count for the source URL * @return {Promise}
()
| 78 | * @return {Promise} |
| 79 | */ |
| 80 | fetchCount() { |
| 81 | const url = `https://widgets.pinterest.com/v1/urls/count.json?return_jsonp=false&url=${this.url}`; |
| 82 | return this.xhr.fetchJson(url, {}).then((res) => res.json()); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Pretty print the Pin count with english suffixes |