def create_profile(self, name, bundle_id, certificate_id, devices=[], type='IOS_APP_ADHOC', out_path=os.environ['HOME']): if len(devices) == 0: result = self.list_devices() if result['status'] == 200: for info in result['data']: devices.append({'id': info['id'], 'type': info['type']}) if len(devices) == 0: return {'status': '400', 'data': 'don\'t have any devices'} else: return result return Profile.create_profile(name, bundle_id, certificate_id, devices, type, out_path)
def request_profile(self, id): return Profile.request_profile(id)
def delete_profile(self, id): return Profile.delete_profile(id)
def list_profiles(self, limit=100, sort='id'): return Profile.list_profiles(limit, sort)
def download_profiles(self, outpath, limit=100, id='id'): return Profile.download_profiles(outpath, limit, id)