/// <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 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); }