/// <summary>
        /// This endpoint will create a new child account under the recruiter using the API.
        /// </summary>
        /// <param name="data">Data of account to create</param>
        /// <returns></returns>
        public string CreateAccount(PostAccountParameter data)
        {
            var url  = $"account";
            var json = HttpHelpers.HttpPost(url, data);

            return(json);
        }
        /// <summary>
        /// This endpoint will create a new candidate and create a new referee for them with one call. You can add up to 5 referee's per candidate. The referee will also be sent a reference request email.
        /// </summary>
        /// <param name="data">Data of candidate and referees to be created</param>
        /// <returns></returns>
        public GetCandidateWithRefereesResponse CreateCandidateWithReferees(PostCandidateWithRefereesParameter data)
        {
            var url    = $"referee/quick";
            var json   = HttpHelpers.HttpPost(url, data);
            var retVal = JsonConvert.DeserializeObject <GetCandidateWithRefereesResponse>(json);

            return(retVal);
        }
        /// <summary>
        /// This endpoint will create a candidate and add them to Referoo. If you want the candidate to be emailed right away requesting referee's, ensure the variable one_click_reference is set to 1.
        /// </summary>
        /// <param name="data">Data of candidate to create</param>
        /// <returns></returns>
        public GetCandidatesResponseData CreateCandidate(PostCandidateParameter data)
        {
            var url    = $"candidate";
            var json   = HttpHelpers.HttpPost(url, data);
            var retVal = JsonConvert.DeserializeObject <GetCandidatesResponseData>(json);

            return(retVal);
        }
Example #4
0
        /// <summary>
        /// This endpoint will create a new referee under the candidate num that was passed in the URL.
        /// </summary>
        /// <param name="num">Numeric ID of the candidate to link the referee to</param>
        /// <param name="data">Data of referee to create</param>
        /// <returns></returns>
        public GetRefereesResponse CreateReferee(long num, PostRefereeParameter data)
        {
            var url    = $"candidate/{num}/referee";
            var json   = HttpHelpers.HttpPost(url, data);
            var retVal = JsonConvert.DeserializeObject <GetRefereesResponse>(json);

            return(retVal);
        }