Exemple #1
0
        /// <summary>
        ///     Gets the details of a task.
        /// </summary>
        /// <param name="project_id">The project_id is the identifier of the project.</param>
        /// <param name="task_id">The task_id is the identifier of the task of specified project.</param>
        /// <returns>ProjectTask object.</returns>
        public ProjectTask GetATask(string project_id, string task_id)
        {
            var url      = baseAddress + "/" + project_id + "/tasks/" + task_id;
            var responce = ZohoHttpClient.get(url, getQueryParameters());

            return(ProjectParser.gettask(responce));
        }
Exemple #2
0
        /// <summary>
        ///     Updates the details of a task.
        /// </summary>
        /// <param name="project_id">The project_id is the idntifier of the project.</param>
        /// <param name="task_id">The task_id is the identifier of the task of specified project.</param>
        /// <param name="update_info">The update_info is the ProjectTask object which contains the updation information.</param>
        /// <returns>ProjectTask object.</returns>
        public ProjectTask UpdateTask(string project_id, string task_id, ProjectTask update_info)
        {
            var url        = baseAddress + "/" + project_id + "/tasks/" + task_id;
            var json       = JsonConvert.SerializeObject(update_info);
            var jsonstring = new Dictionary <object, object>();

            jsonstring.Add("JSONString", json);
            var responce = ZohoHttpClient.put(url, getQueryParameters(jsonstring));

            return(ProjectParser.gettask(responce));
        }