Additional clientContext data for iphone play sound call - picklepete/pyicloud#90

This commit is contained in:
Chad Johnson 2017-02-10 16:51:36 -06:00
parent ced8e83a40
commit 200e00b37c

View file

@ -130,7 +130,13 @@ class AppleDevice(object):
It's possible to pass a custom message by changing the `subject`. It's possible to pass a custom message by changing the `subject`.
""" """
data = json.dumps({'device': self.content['id'], 'subject': subject}) data = json.dumps({
'device': self.content['id'],
'subject': subject,
'clientContext': {
'fmly': True
}
})
self.session.post( self.session.post(
self.sound_url, self.sound_url,
params=self.params, params=self.params,