But I can't figure out how the 'append' call works
According to the documentation (and the source), the signature of this method is :
But if I, for instance, call this url :// v13 (new param order and new result type):
// int append(string NZBFilename, string NZBContent, string Category, int Priority, bool AddToTop, bool AddPaused, string DupeKey, int DupeScore, string DupeMode)
Code: Select all
http://localhost:6789/jsonprpc/append?callback=callback&=myfilename&=http%3A%2F%2Fnzbindex.nl%2F&=Series&=0&=false&=true&=none&=0&=force
Code: Select all
callback({
"version" : "1.1",
"error" : {
"name" : "JSONRPCError",
"code" : 2,
"message" : "Invalid parameter (AddTop)"
}
})
I've been going through the source code (file:daemon\remote\XmlRPC.cpp) and the order and formatting of my parameters should be correct
I tried calling the method by adding the parameters 1 by 1, and if I get to the 'AddTop' parameter and call the url like this:
Code: Select all
http://localhost:6789/jsonprpc/append?callback=callback&=myfilename&=http%3A%2F%2Fnzbindex.nl%2F&=Series&=0&=false
but if I add the next parameter according to the method signature (which is 'AddPauzed') and then call this url:
Code: Select all
http://localhost:6789/jsonprpc/append?callback=callback&=myfilename&=http%3A%2F%2Fnzbindex.nl%2F&=Series&=0&=false&=false
...
Please help