API function to just test the connection and see if NZB key is correct?
Posted: August 12th, 2020, 4:06 am
Hi
I am the programmer of NZBDonkey which interacts with Sabnzbd via its API. As far as I know, there is no dedicated API function to just check the connection and see if the NZB key (or API key) is correct. Until version 2.3.9 I somehow misused the addurl function by sending an empty name which nevertheless resulted in status=true (and simply an empty array for the nzo_ids). With version 3.0.0 this has changed and Sabnzbd returns status=false and error="expects one parameter".
I therefore wonder which would be the proposed/best way to test the API connectivity with an NZB key (without actually doing anything to the settings, queue, etc.) which will result in a status=true response?
Looking forward to your help/suggestions.
Regards, Tensai
I am the programmer of NZBDonkey which interacts with Sabnzbd via its API. As far as I know, there is no dedicated API function to just check the connection and see if the NZB key (or API key) is correct. Until version 2.3.9 I somehow misused the addurl function by sending an empty name which nevertheless resulted in status=true (and simply an empty array for the nzo_ids). With version 3.0.0 this has changed and Sabnzbd returns status=false and error="expects one parameter".
I therefore wonder which would be the proposed/best way to test the API connectivity with an NZB key (without actually doing anything to the settings, queue, etc.) which will result in a status=true response?
Looking forward to your help/suggestions.
Regards, Tensai