SiriServerCore
SiriServerCore copied to clipboard
PersonSearch
On PersonSearch relationship you will get error..
class': 'CommandFailed', 'group': 'com.apple.ace.system', 'properties': {'reason': 'Relationship not supported'},
To fix you have to edit contactObject PersonSearch relationship to relatedNames
Yes!
I have send an commit to fix this^^
I think I marked the contactObjects as a ToDo there will be a an update which recreates all contactObjects
Hm I just redid that class but to 100% it should look like this:
class ABPersonSearch(ClientBoundCommand):
def __init__(self, refId):
super(ABPersonSearch, self).__init__("PersonSearch", "com.apple.ace.contact", None, refId)
self.targetAppId = None # @"NSURL"
self.accountIdentifier = None # @"NSURL"
self.address = None # @"SALocation"
self.birthday = None # @"NSDate"
self.company = None # @"NSString"
self.email = None # @"SAEmail"
self.me = None # @"NSNumber"
self.name = None # @"NSString"
self.phone = None # @"SAPhone"
self.relationship = None # @"NSString"
self.scope = None # @"NSString"
def to_plist(self):
self.add_property('targetAppId')
self.add_property('accountIdentifier')
self.add_property('address')
self.add_property('birthday')
self.add_property('company')
self.add_property('email')
self.add_property('me')
self.add_property('name')
self.add_property('phone')
self.add_property('relationship')
self.add_property('scope')
return super(ABPersonSearch, self).to_plist()
Or can you give an example plist (from 4S) where relatedNames is send during this request?
I have written search code for what is my brothers adress if I'll take relationship it says 'properties': {'reason': 'Relationship not supported'},
If I change to relatedNames it works great
sure I bet if you change it to: "I_dont_give_a_fuck" it will also work. I think you are just using it wrong, set the relationship property to None and it should work (ps. use the AB version)