Pgyer internal test distribution service is a leading mobile application internal test distribution platform in China, dedicated to providing easy-to-use App internal test distribution services for mobile developers and test users.
Pgyer Developer Service Platform is committed to providing excellent upstream and downstream services for developers, addressing the various needs of developers throughout the developer life cycle.
Scan QR code to follow
Pgyer WeChat Official Account
Get the latest news, official benefits, promotions and other information
Pgyer document center
对于应用的开发者来说,除了可以使用蒲公英的网页、桌面客户端来上传应用以外,还可以通过蒲公英提供的 API 来上传应用。本文介绍了如何在 Linux 或 Mac OS 系统中,通过一条命令来发布应用。
原理:通过蒲公英提供的上传应用 API,调用系统的 curl 命令来上传应用。
上传命令格式:
curl -F "file=@{$filePath}" \
-F "uKey={$uKey}" \
-F "_api_key={$apiKey}" \
http://www.pgyer.com/apiv1/app/upload
其中:
{$filePath}
是应用安装包文件的路径{$uKey}
是开发者的用户 Key,在应用管理
-API
中查看{$apiKey}
是开发者的 API Key,在应用管理
-API
中查看例如:
curl -F "file=@/tmp/example.ipa" \
-F "uKey=4a5bc52e6763795e18b69bd82dd23a9e" \
-F "_api_key=82c8dfb1f5f8999b9b5641b42b84adbf" \
http://www.pgyer.com/apiv1/app/upload
如果上传成功,接口会以 JSON
格式返回应用的详细信息。如果上传失败,则会返回相应的错误信息。
该接口支持设置密码、更新描述文字等功能。关于具体参数设置,更多请见:蒲公英上传应用 API
对于使用 Windows 的开发者来说,可以安装 Windows 版本的 curl 工具,请见:Windows 下安装使用 curl 命令
About Us
Product Services
Your account information is under review and can not be used temporarily; you can:
Check out the help documentation for common ways to work on the Pgyer's platform;
Check Pgyer's App Auditing , which must be viewed before uploading.
Currently, the real-name authentication has not been completed, and the number of downloads for each version is limited to 0 times/day, After real-name authentication, it can be extended to 500 times/day
TestFlight is only available to Professional users.(Click understand pgyer's price plan)
支付成功
Pgyer VIP User Group
(Please open WeChat - Sweep and join the group chat)