Example #1
0
 public APIResponse UploadFileToRepository(string filePath)
 {
     return(OrganizationAPIHandler.GetInstance().UploadFile(filePath));
 }
Example #2
0
 public APIResponse UploadFileToRepository(Stream fileContent, string fileName)
 {
     return(OrganizationAPIHandler.GetInstance().UploadFile(fileContent, fileName));
 }
Example #3
0
 /// <summary>
 /// To get ZohoCRM Organization Details.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 public APIResponse GetOrganizationDetails()
 {
     return(OrganizationAPIHandler.GetInstance().GetOrganizationDetails());
 }
Example #4
0
 /// <summary>
 /// To get current user in ZohoCRM Organization.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 public APIResponse GetCurrentUser()
 {
     return(OrganizationAPIHandler.GetInstance().GetCurrentUser());
 }
Example #5
0
 /// <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));
 }
Example #6
0
 /// <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));
 }
Example #7
0
 /// <summary>
 /// To get all taxes of the Organization.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMOrgTax&gt; class instance.</returns>
 public BulkAPIResponse <ZCRMOrgTax> GetAllTaxes()
 {
     return(OrganizationAPIHandler.GetInstance().GetAllTaxes());
 }
Example #8
0
 /// <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));
 }
Example #9
0
 /// <summary>
 /// To get all profiles of the Organization.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMProfile&gt; class instance.</returns>
 public BulkAPIResponse <ZCRMProfile> GetAllProfiles()
 {
     return(OrganizationAPIHandler.GetInstance().GetAllProfiles());
 }
Example #10
0
 /// <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));
 }
Example #11
0
 /// <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));
 }
Example #12
0
 /// <summary>
 /// To get all active confirmed admins of the Organization based on page and perPage.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMUser&gt; 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));
 }
Example #13
0
 /// <summary>
 /// To get all in active users of the Organization based on page and perPage.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMUser&gt; 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));
 }
Example #14
0
 /// <summary>
 /// To get all user of the Organization based on modifiedSince(Header), page and perPage.
 /// </summary>
 /// <returns>BulkAPIResponse&l;ZCRMUser&gt; 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));
 }