Page 1 of 1

Add NZB via API from external URL

Posted: October 10th, 2011, 8:03 am
by packetstormer
Hello,
I am having a little bit of difficulty adding an NZB to Sab from an external source that has "&apikey=xxxxx" in its URL. I have written an app to login to NzbMatrix and get specified NZB URLs. I am then trying to post that into Sab e.g

Code: Select all

http://localhost:8080/sabnzbd/api?mode=addurl&apikey=XXXXXXXXX&name=https://api.nzbmatrix.com/v1.1/download.php?id=yyyyy&username=x&apikey=xxxxxsssss 
However, because both Sabnzbd and Nzbmatrix use the "apikey=" format I beleive Sabnzbd is getting confused.

Is there an easier way to add the NZB without dropping it into a specified folder?

Re: Add NZB via API from external URL

Posted: October 10th, 2011, 11:50 am
by shypike
You need to do proper quoting in the nzbmatrix URL.
Replace meta characters like & = : / by %25 and %3D etc.