Page 1 of 1
Set archive password via API
Posted: April 1st, 2016, 2:51 am
by fitiwizz
Hello,
Didn't find any info on the API doc or the forums, but is there any way to set an archive password via the API ?
Thanks !
Re: Set archive password via API
Posted: April 1st, 2016, 3:42 am
by safihre
When adding an NZB, only by setting in the request the nzbname:
After it is added and in the queue, changing it is harder but possible by sending a POST request to a specific URL.
This is how it is done in Glitter:
Code: Select all
callSpecialAPI("/nzb/" + NZB_id + "/save/", {
name: NZB_name,
password: $('#nzb_password').val()
})
callSpecialAPI will append the API key to the request and the send it.
The name variable is
essential also.. Otherwise the password is not updated!
It will return a 303-redirect to the main page and no information about succes/failure, because there is no real API call for it but just this function that's used in the (old) skins.
Re: Set archive password via API
Posted: April 4th, 2016, 8:50 am
by fitiwizz
Thank you ! I will try this.