python - 使用 (apitoken/apikey) 自动上传 bugsense proguard 映射文件

标签 python automation mapping proguard bugsense

您好,需要使用 python 和 api(apitoken/apikey) 自动上传 Bugsense proguard 映射文件。我尝试使用(“github.com/PanosJee/5004886”)中的代码,但没有找到任何上传的内容。我可以使用我的 apikey 和 apitoken 对 python 代码(.../errors.json 和 .../analytics.json)中指定的 url 进行 curl ,但不能对要求我登录的任何其他 url 进行 curl

最佳答案

您可以使用curl,如下面的示例所示。

APPTOKEN - 为应用程序提供的 token
ACCESSTOKEN - Bugsense 访问 token 。可以在账户信息 -> 集成 -> API TOKEN 中找到

下面的 Bash 脚本示例:

iOS

export DSYMFILEPATH=file.dSYM
export APPTOKEN="fcccccca"
export ACCESSTOKEN="aaaaa4075aaaa69fbaaaa61"
curl -F "file=@$DSYMFILEPATH" --header "X-Bugsense-apikey: $APPTOKEN" --header "X-BugSense-auth-token: $ACCESSTOKEN" https://symbolicator.splkmobile.com/upload/dsym -i

安卓

export PROGUARDMAPPINGFILE=mapping.txt
export APPTOKEN="acccccca"
export ACCESSTOKEN="aaaaa4075aaaa69fbaaaa61"
export APPVERSION="1.1"
curl -F "file=@$PROGUARDMAPPINGFILE" --header "X-Bugsense-apikey: $APPTOKEN" --header "X-BugSense-auth-token: $ACCESSTOKEN"  --header "X-Bugsense-appver: $APPVERSION"  https://symbolicator.splkmobile.com/upload/mapping -i 

了解更多详情:https://github.com/bugsense/docs/blob/master/api/read.md

关于python - 使用 (apitoken/apikey) 自动上传 bugsense proguard 映射文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21853188/

相关文章:

python - "is"和 "=="有什么区别?

python - 如何在 Django 中以编程方式批准所有已安装的应用程序权限

ios - React Native 中的自动化

ruby - 使用 Watir 自动进行身份验证

java - Struts 映射到以扩展名命名的操作不起作用

python - SQL Server DATE 作为字符串检索到 pandas

Python:-u 选项的意义?

automation - Cypress session 测试第二次不起作用

sqlite - 不正确的字段类型映射 SubSonic 2.2、SQLite 3

javascript - 根据多个特定字符从平面字符串数组创建嵌套对象