/// <summary> /// Deletes the comment. /// </summary> /// <param name="project_id">The project_id is the identifier of the project.</param> /// <param name="comment_id">The comment_id is the identifier of the comment for the specified project.</param> /// <returns>System.String.<br></br>The success message is "The comment has been deleted."</returns> public string DeleteComment(string project_id, string comment_id) { var url = baseAddress + "/" + project_id + "/comments/" + comment_id; var responce = ZohoHttpClient.delete(url, getQueryParameters()); return(ProjectParser.getMessage(responce)); }
/// <summary> /// Deletes the logged time entries. /// </summary> /// <param name="parameters"> /// The parameters is the dictionary object which contains the following mandatory parameter in the key,value pair /// format.<br></br> /// <table> /// <tr> /// <td>time_entry_ids*</td><td>IDs of the time entries to be deleted.</td> /// </tr> /// </table> /// </param> /// <returns>System.String.<br></br>The success message is "The selected timesheet entries have been deleted"</returns> public string DeleteTimeEntries(Dictionary <object, object> parameters) { var url = baseAddress + "/timeentries"; var responce = ZohoHttpClient.delete(url, getQueryParameters(parameters)); return(ProjectParser.getMessage(responce)); }
/// <summary> /// Marks a project as inactive. /// </summary> /// <param name="project_id">The project_id is the identifier of the project.</param> /// <returns>System.String.<br></br>The success message is "The selected projects have been marked as inactive."</returns> public string Inactivate(string project_id) { var url = baseAddress + "/" + project_id + "/inactive"; var responce = ZohoHttpClient.post(url, getQueryParameters()); return(ProjectParser.getMessage(responce)); }
/// <summary> /// Deletes the logged time entry. /// </summary> /// <param name="time_entry_id">The time_entry_id is the identifier of the time entry.</param> /// <returns>System.String.<br></br>The success message is "The time entry has been deleted" </returns> public string DeleteTimeEntry(string time_entry_id) { var url = baseAddress + "/timeentries/" + time_entry_id; var responce = ZohoHttpClient.delete(url, getQueryParameters()); return(ProjectParser.getMessage(responce)); }
/// <summary> /// Remove user from the project. /// </summary> /// <param name="project_id">The project_id is the identifier of the project.</param> /// <param name="user_id">The user_id is the identifier of the user who is associated with the specified project.</param> /// <returns>System.String.<br></br>The success message is "The staff has been removed"</returns> public string DeleteUser(string project_id, string user_id) { string url = baseAddress + "/" + project_id + "/users/" + user_id; var responce = ZohoHttpClient.delete(url, getQueryParameters()); return(ProjectParser.getMessage(responce)); }