/// <summary> /// This API endpoint will send the candidate a reference request email. /// </summary> /// <param name="num">Numeric ID of the candidate to email</param> /// <returns></returns> public string SendCandidateReferenceRequestEmail(long num) { var url = $"candidate/{num}/email"; var json = HttpHelpers.HttpPut(url, null); return(json); }
/// <summary> /// This API end point will update a candidate based on the ID passed in the call. Pass a JSON object containing the variables you wish to update. /// </summary> /// <param name="num">Numeric ID of the referee to update</param> /// <param name="data">Data of referee to update</param> /// <returns></returns> public GetRefereesResponse UpdateReferee(long num, PutRefereeParameter data) { var url = $"referee/{num}"; var json = HttpHelpers.HttpPut(url, data); var retVal = JsonConvert.DeserializeObject <GetRefereesResponse>(json); return(retVal); }
/// <summary> /// This API end point will update a candidate based on the record num passed in the call. Pass a JSON object containing the variables you wish to update. /// </summary> /// <param name="num">Numeric ID of the candidate to update</param> /// <param name="data">You do not need to update all the variables, only pass those you wish to update.</param> /// <returns></returns> public GetCandidatesResponseData UpdateCandidate(long num, PutCandidateParameter data) { var url = $"candidate/{num}"; var json = HttpHelpers.HttpPut(url, data); var retVal = JsonConvert.DeserializeObject <GetCandidatesResponseData>(json); return(retVal); }
/// <summary> /// This API end point will update a child account based on the ID passed in the call. Pass a JSON object containing the variables you wish to update. /// </summary> /// <param name="num">Numeric ID of the account to update</param> /// <param name="data">Data of account to update</param> /// <returns></returns> public PutAccountResponse UpdateChildAccount(long num, PostAccountParameter data) { var url = $"account/{num}"; var json = HttpHelpers.HttpPut(url, data); var retVal = JsonConvert.DeserializeObject <PutAccountResponse>(json); return(retVal); }