clojars

http://clojars.org discussion and “support”, see http://status.clojars.org for status.
martinklepsch 2018-05-29T06:28:25.000243Z

Another data/API question: is there some way to get recent releases?

xtreak29 2018-05-29T06:35:51.000044Z

@martinklepsch I think you can hit <https://clojars.org/api/artifacts/leiningen> and take the first element of the array recent_versions which has the most recent release. I think it handles snapshots but I am not sure. Snapshot example : https://clojars.org/api/artifacts/ql Ref : https://github.com/clojars/clojars-web/wiki/Data#endpoints

martinklepsch 2018-05-29T06:36:41.000091Z

@xtreak29 thanks, I was more looking for a “global feed” if that makes sense?

martinklepsch 2018-05-29T06:36:51.000047Z

kind of what is displayed on the front page

martinklepsch 2018-05-29T13:16:53.000313Z

@tcrawley are you aware of any way users could get a “feed” of releases on clojars? If not I would be happy to work on it.

2018-05-29T13:24:08.000731Z

@martinklepsch We don’t have anything formal, but it may be possible to simulate that now with a date-based query against the search api. That may allow you to get everything released since a certain date. Not the same thing, but would that work for your needs?

martinklepsch 2018-05-29T13:29:12.000591Z

Do you have an example of how such query would look? I randomly tried https://clojars.org/search?q=incanter%20at:[2018-04-01%20TO%202018-04-10]&amp;format=json after looking at some code but not sure that’s what you mean? 😄

2018-05-29T13:34:02.000124Z

Yep, something like that. I’ve never used the date search. You may need to include the time info for dates to be processed properly, like: https://clojars.org/search?q=at:[2018-04-01T00:00:00Z%20TO%202018-04-10T00:00:00Z]&amp;format=json. Though That is paged in batches of 24, and I don’t recall how to get the next page. It’s clear that I never use search :)

martinklepsch 2018-05-29T13:50:55.000212Z

Ok, thanks for the pointer, will dig 🙂