public APIResponse UploadFileToRepository(string filePath) { return(OrganizationAPIHandler.GetInstance().UploadFile(filePath)); }
public APIResponse UploadFileToRepository(Stream fileContent, string fileName) { return(OrganizationAPIHandler.GetInstance().UploadFile(fileContent, fileName)); }
/// <summary> /// To get ZohoCRM Organization Details. /// </summary> /// <returns>APIResponse class instance.</returns> public APIResponse GetOrganizationDetails() { return(OrganizationAPIHandler.GetInstance().GetOrganizationDetails()); }
/// <summary> /// To get current user in ZohoCRM Organization. /// </summary> /// <returns>APIResponse class instance.</returns> public APIResponse GetCurrentUser() { return(OrganizationAPIHandler.GetInstance().GetCurrentUser()); }
/// <summary> /// Updates the user. /// </summary> /// <returns>The user instance.</returns> /// <param name="userInstance">User instance.</param> public APIResponse UpdateUser(ZCRMUser userInstance) { return(OrganizationAPIHandler.GetInstance().UpdateUser(userInstance)); }
/// <summary> /// Deletes the user. /// </summary> /// <returns>The user identifier.</returns> /// <param name="userId">User identifier.</param> public APIResponse DeleteUser(long userId) { return(OrganizationAPIHandler.GetInstance().DeleteUser(userId)); }
/// <summary> /// To get all taxes of the Organization. /// </summary> /// <returns>BulkAPIResponse<ZCRMOrgTax> class instance.</returns> public BulkAPIResponse <ZCRMOrgTax> GetAllTaxes() { return(OrganizationAPIHandler.GetInstance().GetAllTaxes()); }
/// <summary> /// To get tax of the Organization based on tax Id. /// </summary> /// <returns>APIResponse class instance.</returns> /// <param name="taxId">Id (Long) of the Organization tax.</param> public APIResponse GetTax(long taxId) { return(OrganizationAPIHandler.GetInstance().GetTax(taxId)); }
/// <summary> /// To get all profiles of the Organization. /// </summary> /// <returns>BulkAPIResponse<ZCRMProfile> class instance.</returns> public BulkAPIResponse <ZCRMProfile> GetAllProfiles() { return(OrganizationAPIHandler.GetInstance().GetAllProfiles()); }
/// <summary> /// To get profile of the Organization based on profile Id. /// </summary> /// <returns>APIResponse class instance.</returns> /// <param name="profileId">Id (Long) of the Organization profile.</param> public APIResponse GetProfile(long profileId) { return(OrganizationAPIHandler.GetInstance().GetProfile(profileId)); }
/// <summary> /// To get role of the Organization based on role Id. /// </summary> /// <returns>APIResponse class instance.</returns> /// <param name="roleId">Id (Long) of the Organization role.</param> public APIResponse GetRole(long roleId) { return(OrganizationAPIHandler.GetInstance().GetRole(roleId)); }
/// <summary> /// To get all active confirmed admins of the Organization based on page and perPage. /// </summary> /// <returns>BulkAPIResponse<ZCRMUser> class instance.</returns> /// <param name="page">Starting page index (Integer)</param> /// <param name="perPage">Number of records per page (Integer)</param> public BulkAPIResponse <ZCRMUser> GetAllActiveConfirmedAdmins(int page, int perPage) { return(OrganizationAPIHandler.GetInstance().GetAllActiveConfirmedAdmins(page, perPage)); }
/// <summary> /// To get all in active users of the Organization based on page and perPage. /// </summary> /// <returns>BulkAPIResponse<ZCRMUser> class instance.</returns> /// <param name="page">Starting page index (Integer)</param> /// <param name="perPage">Number of records per page (Integer)</param> public BulkAPIResponse <ZCRMUser> GetAllInActiveUsers(int page, int perPage) { return(OrganizationAPIHandler.GetInstance().GetAllDeactivatedUsers(page, perPage)); }
/// <summary> /// To get all user of the Organization based on modifiedSince(Header), page and perPage. /// </summary> /// <returns>BulkAPIResponse&l;ZCRMUser> class instance.</returns> /// <param name="modifiedSince">DateTime(ISO8601 format) to display users which are modified after the given input datetime (String)</param> /// <param name="page">Starting page index (Integer)</param> /// <param name="perPage">Number of records per page (Integer)</param> public BulkAPIResponse <ZCRMUser> GetAllUsers(string modifiedSince, int page, int perPage) { return(OrganizationAPIHandler.GetInstance().GetAllUsers(modifiedSince, page, perPage)); }
/// <summary> /// To downloads the profile pic of the user based on photo size. /// </summary> /// <returns>FileAPIResponse class instance.</returns> /// <param name="photoSize">Photo size support (CommonUtil.PhotoSize {stamp, thumb, original, favicon, medium)} <example>CommonUtil.PhotoSize.original</example></param> public FileAPIResponse DownloadProfilePic(CommonUtil.PhotoSize?photoSize) { return(OrganizationAPIHandler.GetInstance().DownloadUserPhoto(photoSize)); }