• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

loginAsUser

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Description

Authenticates another user and returns a valid session key if successful. With this method, you can log in another user using your own username and password.

In parameters

Parameter Description
userId The ID of the user you want to log in
username Your username
password Your password

Out parameters

Parameter Description
errorCode See list of codes
sessionKey

Example

ticket.ticketService ticketService = new ticket.ticketService();
string sessionKey;
string errorCode = ticketService.loginAsUser(3, "egon", "norges bank", out sessionKey);

if (errorCode.Equals("0"))
{
  cout << "hurray!" << endl;
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top