Python
Last updated
Was this helpful?
Was this helpful?
bugsplat = BugSplat(database, application, version)bugsplat.set_default_app_key('key!')
bugsplat.set_default_description('description!')
bugsplat.set_default_email('fred@bugsplat.com')
bugsplat.set_default_user('Fred')
bugsplat.set_default_additional_file_paths([
'./path/to/additional-file.txt',
'./path/to/additional-file-2.txt'
])try:
crash()
except Exception as e:
bugsplat.post(
e,
additional_file_paths=[],
app_key='other key!',
description='other description!',
email='barney@bugsplat.com',
user='Barney'
)bugsplat.post_feedback(
'Login button broken',
description='Nothing happens when I tap it',
email='jane@example.com',
user='Jane',
app_key='en-US'
)bugsplat.post_feedback(
'Login button broken',
description='Nothing happens when I tap it',
email='jane@example.com',
user='Jane',
additional_file_paths=[
'./path/to/screenshot.png',
'./path/to/log.txt'
]
)