API 1.0 (Archive)
Install App
Legacy API 1.0 app install endpoint and iOS in-app installation URL.
This page documents legacy API 1.0 endpoints. New integrations should use API 2.0 Install App.
Install App
Use this endpoint on a mobile device to start installing an app.
GET
https://api.pgyer.com/apiv1/app/installRequest Parameters
| Parameter | Description |
|---|---|
| aKey | App Key. |
| _api_key | API Key. |
| password | Optional. Install password when the app requires one. |
Response Data
The endpoint detects whether the app is iOS or Android and starts the corresponding installation flow.
Example URL
https://api.pgyer.com/apiv1/app/install?_api_key=YOUR_API_KEY&aKey=f3c7897cf8ac70a3d345699ef6e1584d&password=123456This URL contains an API key and, for password-protected apps, the install password. Generate and use it only in a controlled client. Do not publish it, embed it in public frontend source, or write it to public logs.
iOS In-App Install
Use the following URL to start an iOS installation without first opening a browser:
itms-services://?action=download-manifest&url=https://www.pgyer.com/app/plist/{aKey}Replace {aKey} with the App Key.
Examples
Web:
<a href="itms-services://?action=download-manifest&url=https://www.pgyer.com/app/plist/f3c7897cf8ac70a3d345699ef6e1584d">Install</a>iOS:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-services://?action=download-manifest&url=https://www.pgyer.com/app/plist/f3c7897cf8ac70a3d345699ef6e1584d"]];Alternatively:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://api.pgyer.com/apiv1/app/install?_api_key=YOUR_API_KEY&aKey=f3c7897cf8ac70a3d345699ef6e1584d&password=123456"]];