RE: script to login with username and Password
Hi Fabrice,
Stian wrote an answer here that explains it:
https://community.superoffice.com/en/developer/forum/rooms/topic/superoffice-product-api-group/customer-service/login-on-as-customer/
In short, do this:
// custId is the ID of the customer you want to log in, replace this with whatever code you've got
Integer custId = 5;
Customer c;
c.load(custId);
c.login();
String url = getExternalProgramCustomer() + "&custSessionKey=" + custId.toString() + "-" + c.getValue("loginSessionKey");
Hope this helps