Bitly API: 批量处理点击端点
Bitly API: batch handling clicks endpoint
我正在使用 Bitly API 来跟踪我网络上发布的 Bitly 链接的点击次数。眼下我得一一追踪。 In the bitly docs I have read that the best practice is one of making a batch call to the /clicks
endpoint. However in the specific docs about the clicks endpoint,没有提到批处理。
Batch Processing The Bitly API does not support shortening more than
one long URL with a single API call. However, up to 15 URLs can be
handled in one API call using the /v3/lookup, /v3/expand and
/v3/clicks endpoints.
在 Bitly 文档中我找不到任何使用批处理的示例。我自己做了一些尝试,但 none 成功了。
https://api-ssl.bitly.com/v3/link/clicks?access_token=XXXXXXXXXXXX&format=json&link=http%3A//vrt.nu/kijkuniversiteitvanvlaanderen&link=https%3A%2F%2Fbuff.ly%2F2AooMAX
https://api-ssl.bitly.com/v3/link/clicks?access_token=XXXXXXXXXXXX&format=json&link=http%3A//vrt.nu/kijkuniversiteitvanvlaanderen,link=https%3A%2F%2Fbuff.ly%2F2AooMAX
希望你能帮我找到解决办法。
谢谢你和最好的问候,
凯文
bitly.com 中的最佳实践指出 /v3/clicks
而不是 /v3/link/clicks
。我猜/v3/link/clicks
不支持批处理。
我尝试了 links,link[],在 /v3/link/clicks
中复制了 link。都不行。
虽然 /v3/clicks
支持重复 shortUrl
。
警告:/v3/clicks
在弃用列表中,它将被弃用,但官方网站没有说明何时弃用。
希望对您有所帮助。
我正在使用 Bitly API 来跟踪我网络上发布的 Bitly 链接的点击次数。眼下我得一一追踪。 In the bitly docs I have read that the best practice is one of making a batch call to the /clicks
endpoint. However in the specific docs about the clicks endpoint,没有提到批处理。
Batch Processing The Bitly API does not support shortening more than one long URL with a single API call. However, up to 15 URLs can be handled in one API call using the /v3/lookup, /v3/expand and /v3/clicks endpoints.
在 Bitly 文档中我找不到任何使用批处理的示例。我自己做了一些尝试,但 none 成功了。
https://api-ssl.bitly.com/v3/link/clicks?access_token=XXXXXXXXXXXX&format=json&link=http%3A//vrt.nu/kijkuniversiteitvanvlaanderen&link=https%3A%2F%2Fbuff.ly%2F2AooMAX
https://api-ssl.bitly.com/v3/link/clicks?access_token=XXXXXXXXXXXX&format=json&link=http%3A//vrt.nu/kijkuniversiteitvanvlaanderen,link=https%3A%2F%2Fbuff.ly%2F2AooMAX
希望你能帮我找到解决办法。
谢谢你和最好的问候,
凯文
bitly.com 中的最佳实践指出 /v3/clicks
而不是 /v3/link/clicks
。我猜/v3/link/clicks
不支持批处理。
我尝试了 links,link[],在 /v3/link/clicks
中复制了 link。都不行。
虽然 /v3/clicks
支持重复 shortUrl
。
警告:/v3/clicks
在弃用列表中,它将被弃用,但官方网站没有说明何时弃用。
希望对您有所帮助。