API 1.0 (Archive)
Upload App
Legacy API 1.0 endpoint for uploading apps.
This page documents legacy API 1.0 endpoints. New integrations should use API 2.0 Upload and Publish.
Upload App
Upload an ipa or apk file to Pgyer. Use HTTP POST with multipart/form-data.
POST
https://upload.pgyer.com/apiv1/app/uploadRequest Parameters
| Parameter | Type | Description |
|---|---|---|
| uKey | String | Required. User Key. |
| _api_key | String | Required. API Key. |
| file | File | Required. ipa or apk file. |
| installType | Integer | Optional. Install type: 1 public, 2 password, 3 invite. Defaults to 1. |
| password | String | Optional. App install password. |
| updateDescription | String | Optional. Version update description. |
| channelShortcut | String | Optional. Shortcut of the channel to update. Only one channel can be specified. |
Response Data
| Parameter | Type | Description |
|---|---|---|
| appKey | String | App Key. |
| userKey | String | User Key. |
| appType | Integer | App type: 1 iOS, 2 Android. |
| appIsFirst | Integer | Whether this is the first build: 1 yes, 2 no. |
| appIsLastest | Integer | Whether this is the latest build: 1 yes, 2 no. |
| appFileSize | Integer | App file size. |
| appName | String | App name. |
| appVersion | String | Version. |
| appVersionNo | Integer | Android version code; always 0 for iOS. |
| appBuildVersion | Integer | Build number generated by Pgyer to distinguish historical builds. |
| appIdentifier | String | Bundle ID on iOS or package name on Android. |
| appIcon | String | App icon key. Retrieve the image from https://www.pgyer.com/image/view/app_icons/{appIcon}. |
| appDescription | String | App description. |
| appUpdateDescription | String | Release notes. |
| appScreenShots | String | Screenshot keys. Retrieve an image from https://www.pgyer.com/image/view/app_screenshots/{screenshotKey}. |
| appShortcutUrl | String | App short URL. |
| appQRCodeURL | String | App QR-code URL. |
| appCreated | String | Upload time. |
| appUpdated | String | Last update time. |
Upload App Example
Upload an app from Linux with curl:
curl -F "file=@/tmp/example.ipa" -F "uKey=YOUR_UKEY" -F "_api_key=YOUR_API_KEY" https://upload.pgyer.com/apiv1/app/uploadReplace YOUR_UKEY and YOUR_API_KEY with the values for your account.