iOS SDK Samples - Territories Operations
Get All Territories
ZCRMSDKUtil.getZCRMTerritories() { result in
switch result
{
case .success (let territories, let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print("Throws exception : \(error)")
}
}
Get a Territory
ZCRMSDKUtil.getZCRMTerritory(byId: 1234567876543) { result in
switch result
{
case .success (let territories, let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print("Throws exception : \(error)")
}
}