示例#1
0
文件: app.py 项目: misternate/deke
 def new(self):
     request_fragments = ['apps', self.identifier, 'new']
     app = api.Request(self.token, self.identifier)
     response = app._post(
         request_fragments, {
             'bundle_short_version': title,
             'bundle_identifier': bundle_identifier,
             'platform': platform
         })
示例#2
0
文件: app.py 项目: misternate/deke
    def list_versions(self):
        if self.identifier is None:
            raise ValueError('No identifier provided.')
        else:
            request_fragments = ['apps', self.identifier, 'app_versions']
            app = api.Request(self.token, self.identifier)
            response = app._get(request_fragments)

            return response
示例#3
0
文件: app.py 项目: misternate/deke
    def crashes_histogram(self, start_date, end_date):
        request_fragments = ['apps', self.identifier, 'crashes', 'histogram']
        app = api.Request(self.token, self.identifier)
        response = app._get(request_fragments, {
            'start_date': start_date,
            'end_date': end_date
        })

        return response
示例#4
0
文件: app.py 项目: misternate/deke
    def new(self, title, bundle_identifier, platform="iOS"):
        request_fragments = ['apps', 'new']
        app = api.Request(self.token)
        response = app._post(
            request_fragments, {
                'title': title,
                'bundle_identifier': bundle_identifier,
                'platform': platform
            })

        return response
示例#5
0
文件: app.py 项目: misternate/deke
    def statistics(self):
        request_fragments = ['apps', self.identifier, 'statistics']
        app = api.Request(self.token, self.identifier)
        response = app._get(request_fragments)

        return response
示例#6
0
文件: app.py 项目: misternate/deke
    def list_apps(self):
        request_fragments = ['apps']
        apps = api.Request(self.token)
        response = apps._get(request_fragments)

        return response
示例#7
0
文件: app.py 项目: misternate/deke
 def download(self, latest=True):
     request_fragments = ['apps', self.identifier, 'app_versions']
     app = api.Request(self.token, self.identifier, True)
     app._download_build(request_fragments)
示例#8
0
文件: app.py 项目: misternate/deke
    def crash_groups(self, sort_by=None):
        request_fragments = ['apps', self.identifier, 'crash_reasons']
        app = api.Request(self.token, self.identifier)
        response = app._get(request_fragments, {'sort': sort_by})

        return response
示例#9
0
文件: app.py 项目: misternate/deke
 def delete(self, app_id, app_version=None, version_id=None):
     request_fragments = ['apps', app_id, app_version, version_id]
     app = api.Request(self.token)
     response = app._delete(request_fragments)