Any Pyto users on this forum? (thank you for mentioning it, @tf2)
Maybe someone can help me with using its Objective-C bridge to access HealthKit data?
If possible at all… They list HealthKit as one of the modules that can be imported, but I know @simonbs once shared that HealthKit support was removed from Scriptable because of an App Store (or TestFlight?) rejection. And since Apple treats all developers equal I would be surprised if we can get this to work in Pyto…
I’m already stuck on requesting authorization (defining the types I want to access):
How can I get to the constant
HKCategoryTypeIdentifierSleepAnalysis to supply to
HKObjectType.categoryTypeForIdentifier in Pyto?