InsertInterviewer
Description
Adds a new interviewer.
Signature
int InsertInterviewer(string key, string userId, string password, string lastName, string firstName)
Parameters
Name | Data Type | Description |
---|---|---|
key |
string required |
The authentication key |
userId |
string required |
The interviewer’s user id. |
password |
string required |
The interviewer’s password. |
lastName |
string required |
The interviewer’s last name. |
firstName |
string required |
The interviewer’s first name. |
Response
Data Type | Description |
---|---|
int |
The (internal) interviewerId if the insert is successful; -1 if the user id already exists. |
Example
// Create instance of the webservice
var capi = new CapiSoapClient();
//***************************************************
//
// InsertInterviewer
//
//***************************************************
// Insert a new interviewer
int internalCapiInterviewerId = capi.InsertInterviewer(key, "john", "pass#wd", "Doe", "John");
if (internalCapiInterviewerId == -1)
{
//User id already exists
}