API access to Hyperkitty
Is it possible to download Hyperkitty's archives to a remote server via an API? Is there documentation that explains how to accomplish this task?
-- Brian Carpenter Harmonylists.com Emwd.com
On 2/9/21 10:23 AM, Brian Carpenter wrote:
Is it possible to download Hyperkitty's archives to a remote server via an API? Is there documentation that explains how to accomplish this task?
I don't think there is documentation, but if you look at the target of
any download
button, it should be obvious. I.e. the link to download
the entire archive for this list is
The mailman-users@mailman3.org-2021-02.mbox.gz
part is the name of the
file to download to and the -2021-02
part can be anything or nothing,
but the name must begin with the list posting address and end with
.mbox.gz
.
If the archive is large, this can time out in which case adjust start
and end
to download it in pieces.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Tue, Feb 9, 2021, at 10:44 AM, Mark Sapiro wrote:
On 2/9/21 10:23 AM, Brian Carpenter wrote:
Is it possible to download Hyperkitty's archives to a remote server via an API? Is there documentation that explains how to accomplish this task?
I don't think there is documentation, but if you look at the target of any
download
button, it should be obvious. I.e. the link to download the entire archive for this list isThe
mailman-users@mailman3.org-2021-02.mbox.gz
part is the name of the file to download to and the-2021-02
part can be anything or nothing, but the name must begin with the list posting address and end with.mbox.gz
.If the archive is large, this can time out in which case adjust
start
andend
to download it in pieces.
Hyperkitty also has a traditional REST API, which can be used to ingest archives on a different server that doesn’t necessarily want to deal with mboxes.
The documentation comes with Hyperkitty and is typically available at “/api” in Hyperkitty. So something like this on our server:
https://lists.mailman3.org/archives/api/
There is also a “HTML” version where you can actually browse through the API like a webpage. It returns Json/XML/txt when you ask for it. The above page should have the details.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
participants (3)
-
Abhilash Raj
-
Brian Carpenter
-
Mark Sapiro