iOS SDK Samples - Profiles Operations
Get All Profiles
//company is the object of getCompanyInfoDelegate()
$company.getProfiles { ( result ) in
switch result
{
case .success (let profiles, let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print("Throws exception : \(error)")
}
}
Get a Profile
let id = try profileDetails.getInt64(key: "id")
//company is the object of getCompanyInfoDelegate()
$company.getProfile(id: id) { ( result ) in
switch result
{
case .success (let profile, let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print("Throws exception : \(error)")
}
}