iOS SDK Samples - Module Operations

Get a Module
          
          
ZCRMSDKUtil.getModule(moduleAPIName: "Leads") { ( result ) in
            switch result
            {
            case .success(let module, let response) :
              print("ResponseJSON : \( response.responseJSON )")
            case .failure(let error) :
                print( "get module failed : \( error )")
        }
} 
 
Get a List of Modules
          
          
ZCRMSDKUtil.getModules { ( result ) in 
switch result
  {
   case .success(let module, let response) :
         print("ResponseJSON : \( response.responseJSON )")
   case .failure(let error) :
         print( "get modules failed : \( error )")
                    }
        }
 
Get the list of modules with the If-Modified-Since param
          
          
ZCRMSDKUtil.getModules(modifiedSince: "2020-08-06T16:23:24+05:30") { ( result ) in
            switch result
                        {
                        case .success(let module, let response) :
                            print("ResponseJSON : \( response.responseJSON )")
                        case .failure(let error) :
                            print( "get modules failed : \( error )")
                    }
}