Esempio n. 1
0
 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
         })
Esempio n. 2
0
    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
Esempio n. 3
0
    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
Esempio n. 4
0
    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
Esempio n. 5
0
    def statistics(self):
        request_fragments = ['apps', self.identifier, 'statistics']
        app = api.Request(self.token, self.identifier)
        response = app._get(request_fragments)

        return response
Esempio n. 6
0
    def list_apps(self):
        request_fragments = ['apps']
        apps = api.Request(self.token)
        response = apps._get(request_fragments)

        return response
Esempio n. 7
0
 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)
Esempio n. 8
0
    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
Esempio n. 9
0
 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)