API upload nzb file
Posted: November 15th, 2014, 9:24 pm
Hi, im integrating SABnzbd into my android app. But I'm having some problems with uploading nzb files with the API.
What i get returned is this: error: expect one parameter
this is my URL in java: "http://" + hostname + ":" + port + "/api?mode=addfile&nzbname=" + FILENAME + "&apikey=" + apiKey
and i set the file itself as a multipart entity as a HTTP POST entity. But as i said i always get error: expect one parameter returned.
Is my URL wrong or am i doing something completly wrong?
Thx
What i get returned is this: error: expect one parameter
this is my URL in java: "http://" + hostname + ":" + port + "/api?mode=addfile&nzbname=" + FILENAME + "&apikey=" + apiKey
and i set the file itself as a multipart entity as a HTTP POST entity. But as i said i always get error: expect one parameter returned.
Is my URL wrong or am i doing something completly wrong?
Thx