コード例 #1
0
        /// <summary>
        /// Deletes a user associated to the organization.
        /// </summary>
        /// <param name="user_id">The user_id is the identifier of the user.</param>
        /// <returns>System.String.<br></br>The success message is "The user has been removed from your organization."</returns>
        public string Delete(string user_id)
        {
            string url      = baseAddress + "/" + user_id;
            var    response = ZohoHttpClient.delete(url, getQueryParameters());

            return(UserParser.getMessage(response));
        }
コード例 #2
0
        /// <summary>
        /// Mark an active user as inactive.
        /// </summary>
        /// <param name="user_id">The user_id is the identifier of the user.</param>
        /// <returns>System.String.<br></br>The success message is "The user has been marked as inactive."</returns>
        public string MarkAsInactive(string user_id)
        {
            string url      = baseAddress + "/" + user_id + "/inactive";
            var    response = ZohoHttpClient.post(url, getQueryParameters());

            return(UserParser.getMessage(response));
        }
コード例 #3
0
        /// <summary>
        ///     Send invitation email to a user.
        /// </summary>
        /// <param name="user_id">The user_id is the identifier of the user.</param>
        /// <returns>System.String.<br></br>The success message is "Your invitation has been sent."</returns>
        public string InviteUser(string user_id)
        {
            var url      = baseAddress + "/" + user_id + "/invite";
            var response = ZohoHttpClient.post(url, getQueryParameters());

            return(UserParser.getMessage(response));
        }