Hi Everyone,
I've been trying to use the NimRequest API in Java and have found that only callbacks with an ACL or 0 (Read) work, otherwise I get a "(6) permission denied" Exception.
So as expected I need to authenticate, but I don't seem to be able to find a way or any examples of how to do this other than a command line
pu -u administrator -p xxxxxxxx /enterprise/hub/robot/controller maint_until for 120 until ""
This is my code so far, can any one assist?
---------------------------------------------------------------------
package adrianTest
import com.nimsoft.nimbus.*;
public class setMaint
{
public static void main(String[] args)
{
try
{
setMaint setMaintVar = new setMaint();
setMaintVar.start(args);
}
catch(Exception e)
{
e.printStackTrace();
}
}
public void start(String[] args) throws Exception
{
PDS params = new PDS();
params.putInt("for",120);
NimRequest request = new NimRequest("controller","maint_until",params);
PDS output = request.send();
}
}
---------------------------------------------------------------------