Recuento de descargas del paquete Nuget

I would like to add a count of a number of times a particular package was downloaded to my page. I'm only interested in a single package. I understand I can make a call to[packageId], parse the page and get to the count this way, but this is quite troublesome.

Vi este, but could not figure out how to construct a url to get xml feed.

Cualquier ayuda se agradece.

preguntado el 09 de septiembre de 13 a las 22:09

2 Respuestas

You might be interested by this: UsingOdataWithTheNugetApi

Respondido el 10 de Septiembre de 13 a las 18:09

The link is down... Do you still have the example code somewhere? - franzhuber23

If you want to show count on HTML UI just use badges. You can crate many types of them e.g. with:

Downloads count badge ejemplo: NuGet Downloads

Nuget version badge ejemplo: Versión del paquete

Badges are very popular now you can use them to show Build and unit tests results, package version, download count, rating, analytics, etc... You can see many examples on Documentos de Github.

respondido 23 nov., 20:16

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.