Authenticating standalone scripts

Dec 11, 2014 at 6:15 PM
Hi all,

I'd like to be able to schedule a standalone script to run at intervals under a service account. Is there any way to automate the step of authenticating the user with the API?

Thanks,
Pete
Coordinator
Dec 11, 2014 at 6:27 PM
You have to hardcode a userid / pwd for a user in your system; for example:
using (Application app = Application.CreateApplication("user", "pwd"))
{
  Execute(app);
}
Marked as answer by wkeranen on 12/11/2014 at 7:45 PM
Dec 11, 2014 at 6:41 PM
Thanks. So sorry -- I guess I never looked at the documentation for CreateApplication -- thought I had.

Pete