Пример #1
0
 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)
Пример #2
0
 def request_profile(self, id):
     return Profile.request_profile(id)
Пример #3
0
 def delete_profile(self, id):
     return Profile.delete_profile(id)
Пример #4
0
 def list_profiles(self, limit=100, sort='id'):
     return Profile.list_profiles(limit, sort)
Пример #5
0
 def download_profiles(self, outpath, limit=100, id='id'):
     return Profile.download_profiles(outpath, limit, id)