ZohoCRMClient
is the main class through which ZohoSharp client applications interact with Zoho CRM data. A ZohoCRMClient
object is instantiated by providing field mappings through an IFieldMappings
object and a model factory through an ICRMModelFactory
object (see the Field Mappings section and the Model Factory section). If neither is provided, ZohoCRMClient
will use default implementations for both field mappings and a model factory. A Zoho CRM API auth token must also be supplied to the ZohoCRMClient
object, either upon instantiation or through the AuthToken
property.
A number of settings options are available that control how the ZohoSharp library interacts with the Zoho API and the model objects that it processes. The majority of these settings are replicated in option objects that may be supplied on an individual request basis as well – these options are described in the General Get Options and General Post Options sections. Other options include:
WebSyncIgnoreOnly
. See the Ignore Attributes section for further detail.DotNetProxyBaseAddress
property must also be set. The default is false.UseDotNetProxy
property is set to true.ModelType.POCO
instructs the default model factory to return the default POCO model objects instead of the default SyncableModelBase
model objects. The default is ModelType.Syncable
. See the Model Factory section for further detail.SyncableModelBase
model objects. The default is false. See the Model Factory section for further detail.SyncableModelBase
model objects. The default is false. See the Model Factory section for further detail.The Module method accepts a string representation of a CRM module name and returns an ICRMClientModule
object that is used to actually interact with the Zoho CRM. ZohoCRMClient
also includes a set of convenience properties that accomplish the same thing – there exists a property for each built-in CRM module, returning the corresponding ICRMClientModule
object.
The ICRMClientModule
interface exposes the common Zoho CRM API functionality for operating on the various modules. This functionality is described in the Interacting with the Zoho CRM section. Calls to these methods should usually be wrapped with try-catch statements as the methods are designed to throw exceptions under a variety of situations.
© 2022 Jeff Williamson. All rights reserved. Privacy Policy | Terms of Service