pgyer document center

pgyer -凯发k8地址

api description

our powerful yet useful open api can help you manage your apps, upload builds and get other database of pgyer.


  1. all of api request method are http post,unless otherwise stated.
  2. api of getting resource files like pictures are http post.
  3. the format of api return data is json.
  4. when you required api, _api_key is necessary.
pgyer has introduced api 2.0, recommended for developers to use, api 1.0 version will no longer maintain and update.

general parameter description/common params

parameters name description
_api_key api key api key,is used to identify the identity of users who called api. all of api are required this parameter unless otherwise stated. this value is fixed for the same pgyer's registered users.
ukey user key ukey, is used to identify the identity of the current user.this value is fixed for the same pgyer's registered users.
aid app id app id is a unique id for an app group. for example, if an app named “wechat” uploaded three versions and they were belong to an app group, app id represents the group id.you can find app id in my apps.
akey app key app key represents an app unique indentification. for example, if an app named “wechat” uploaded three versions, every of versions has a different akey and this value is returned via other interface.

examples

the example of php call interface(view apps on apps):

$curl = curl_init();
curl_setopt($curl, curlopt_url, 'http://www.pgyer.com/apiv1/app/listall');
curl_setopt($curl, curlopt_returntransfer, 1);
curl_setopt($curl, curlopt_post, 1);
curl_setopt($curl, curlopt_postfields, 'type=ios&_api_key=&page=1');
$response = curl_exec($curl);
if (curl_errno($curl)) {
    echo curl_error($curl);
}
curl_close($curl);
$jsondata = json_decode($response, true);
// output $jsondata ...

upload app

you can upload your apps to pgyer via api. please use the method http post when upload. enctype is "multipart/form-data".

api url

post https://upload.pgyer.com/apiv1/app/upload

parameters type description
ukey string (required) ukey
_api_key string (required) api key
file file (required) ipa or apk files you need to upload
installtype integer (optional)type of install, this value is (1,2,3), 1:public, 2:password, 3:restrict. the default is public
password string (optional) setting app installation password. if you do not want to set a password, please pass on an empty string or do not pass anything.
updatedescription string (optional) version updated description, please pass on an empty string or do not pass anything.
channelshortcut string (optional)the short link to download for the specified channel you want to update, you can only specify one channel, string type, such as: abcd.

return data

parameters type description
appkey string app key
userkey string user key
apptype integer application type(1:ios; 2:android)
appisfirst integer is it the first app? (1. yes; 2: no;)
appislastest integer is it the newest? (1. yes; 2. no;)
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appicon string icon key of application, url is https://appicon.pgyer.com/image/view/app_icons/[icon key of application]
appdescription string application description
appupdatedescription string application update description
appscreenshots string application screenshots key, the address is https://app-screenshot.pgyer.com/image/view/app_screenshots/[application screenshots key]
appshortcuturl string app download url
appqrcodeurl string app qr code url
appcreated string app upload time
appupdated string app update time

upload app sample

use the curl command to upload apps under linux:

curl -f "[email protected]/tmp/example.ipa" -f "ukey=" -f "_api_key=" https://upload.pgyer.com/apiv1/app/upload

please replace your ukey and _api_key

install app

this apl can only help you install app on mobile phones,please use http get.

api url

get http://www.pgyer.com/apiv1/app/install

get parameters

parameters description
akey app key (app key is an index that uniquely identities the application id.you can get it through a short link interfaces or my application interface.)
_api_key api key
password (option) please pass on the installation secret when your app need one.

return data

interface automatically use the appropriate installation method to install apps based on the type of app, ios or android.

examples

http://www.pgyer.com/apiv1/app/install?_api_key=&akey=f3c7897cf8ac70a3d345699ef6e1584d&password=123456

in-app installations for ios

the interface of in-app installations for ios which can help you to install app without opening browser. interface address:

itms-services://?action=download-manifest&url=https://www.pgyer.com/app/plist/{akey}

change {akey} to the key of app.{} is not included.

examples

web:

parameters type description
akey string (app key is an index that uniquely identities the application id.you can get it through a short link interfaces or my application interface.)
ukey string (option) ukey
_api_key string api key

return data

my apps return parameters type description
appkey string app key
userkey string user key
apptype integer application type(1:ios; 2:android)
appisfirst integer is it the first app? (1. yes; 2: no;)
appislastest integer is it the newest? (1. yes; 2. no;)
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appicon string icon key of application, url is https://appicon.pgyer.com/image/view/app_icons/[icon key of application]
appdescription string application description
appupdatedescription string application update description
appscreenshots string application screenshots key, the address is https://app-screenshot.pgyer.com/image/view/app_screenshots/[application screenshots key]
appshortcuturl string app download url
appqrcodeurl string app qr code url
appcreated string app upload time
appupdated string app update time
historical version return parameters type description
appkey string app key
userkey string user key
appname string app name
appversion string version code
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appcreated string app upload time
appupdated string app update time
feedback return parameters type description
userkey integer user key
commentcontent integer feedback
commentimagekeys integer application screenshots key, the address is https://app-screenshot.pgyer.com/image/view/comment_screenshot/[application screenshots key]
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier integer application package name, ios is bundled , android is package name.
appcreated integer app upload time
appupdated integer app update time

get app group info

when app have different versions, we combine versions to a app group. every app group has their unique app id. the interface can get app group detailed information.

api url

post

parameters type description
aid string app id
_api_key string api key

return data

my apps return parameters type description
appkey string app key
apptype integer application type(1:ios; 2:android)
appisfirst integer is it the first app? (1. yes; 2: no;)
appislastest integer is it the newest? (1. yes; 2. no;)
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appicon string icon key of application, url is https://appicon.pgyer.com/image/view/app_icons/[icon key of application]
appdescription string application description
appupdatedescription string application update description
appscreenshots string application screenshots key, the address is https://app-screenshot.pgyer.com/image/view/app_screenshots/[application screenshots key]
appshortcuturl string app download url
appqrcodeurl string app qr code url
appcreated string app upload time
appupdated string app update time

edit app details

api url

post

parameters type description
akey string app key (app key is an index that uniquely identities the application id.you can get it through a short link interfaces or my application interface.)
ukey string ukey
_api_key string api key
appname string (option) app name
appshortcuturl string (option) app download url
appupdatedescription string (option,when value is null,update is null) application update description
appdescription string (option,when value is null,update is null) application description
apppassword string (option,when value is null,update is null) setting app secret
appversion string (option) version code
appscreenshots string (option,when value is null,update is null) application screenshots key

return data

return parameter type description
appkey string app key
userkey string user key
apptype integer application type(1:ios; 2:android)
appisfirst integer is it the first app? (1. yes; 2: no;)
appislastest integer is it the newest? (1. yes; 2. no;)
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appicon string icon key of application, url is https://appicon.pgyer.com/image/view/app_icons/[icon key of application]
appdescription string application description
appupdatedescription string application update description
appscreenshots string application screenshots key, the address is https://app-screenshot.pgyer.com/image/view/app_screenshots/[application screenshots key]
appshortcuturl string app download url
appqrcodeurl string app qr code url
appcreated string app upload time
appupdated string app update time

get app all versions

api url

post

parameters type description
aid string app id
page integer the pages of historical version
_api_key string api key

return data

return parameter type description
appkey string app key of the latest build
apptype integer application type(1:ios; 2:android)
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appicon string icon key of application, url is https://appicon.pgyer.com/image/view/app_icons/[icon key of application]
appcreated string app upload time

upload app screenshot

api url

post

parameters type description
akey string app key (app key is an index that uniquely identities the application id.you can get it through a short link interfaces or my application interface.)
_api_key string api key
image file need to upload screenshots, you can upload maximum 5

return data

return parameter type description
keys string after app upload screenshots key (comma separated) to obtain address https://app-screenshot.pgyer.com/image/view/app_screenshots/[application screenshots key]

get app info by shortcut

api url

post

parameters type description
shortcut string app short cut url, such as pgyer.com/pgy8 , only need to pass parameters to pgy8.
_api_key string api key

return data

my apps return parameters type description
appkey string app key of the latest build
apptype integer application type(1:ios; 2:android)
appfilename string file name for uploaded app
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appcreated string app upload time

get my apps

api url

post

parameters type description
ukey string ukey
page integer (optional) fill in the digital pages
_api_key string api key

return data

return parameter type description
appkey string app key of the latest build
apptype integer application type(1:ios; 2:android)
appfilesize integer the size of app
appname string app name
appversion string version code
appversionno integer version code for android, ios is always 0
appbuildversion integer pgyer's build number is generated for distinguishing historical versions
appidentifier string application package name, ios is bundled , android is package name.
appicon string icon key of application, url is https://appicon.pgyer.com/image/view/app_icons/[icon key of application]
appcreated string app upload time

list user app groups

you can set and find your app groups in my apps - my groups.

api url

post

parameters type description
ukey string ukey
_api_key string api key

return data

return parameter type description
userappgroupname string app group name
userappgroupkey string app group key (uniquely)
userappgroupshortcuturl string the short cut url of app group
userappgroupdescription string the description of app group
userappgroupcount string the amount of app group
userappcreated string the creation time of app group

view user app groups

you can set and find your app groups in my apps - my groups.this interface returns the details of a app group and also returns the information of this group (only for the latest version).

api url

post

parameters type description
userappgroupkey string the key of app group. you can get it via userappgroup/view interface.
_api_key string api key

return data

return parameter type description
userappgroupname string app group name
userappgroupkey string app group key (uniquely)
userappgroupshortcuturl string the short cut url of app group
userappgroupdescription string the description of app group
userappgroupcount string the amount of app group
userappcreated string the creation time of app group
apps array apps included in the app group

view app feedback list

api url

post

parameters type description
aid string app id
_api_key string api key
page integer fill in the digital pages

return data

return parameter type description
feedbackcontent string feedback content
feedbackimages array feedback information in the picture address
feedbackvoice string recording file address
feedbackfrom string feedback source
feedbackprocess integer feedback processing status (1: processed; 2: untreated)
feedbackcreated string feedback creation time

view app feedback details

api url

post

parameters type description
aid string app id
feedbackkey string the key of the feedback message can be obtained via the feedbacklistall interface
_api_key string api key

return data

return parameter type description
feedbackcontent string feedback content
feedbackimages array feedback information in the picture address
feedbackvoice string recording file address
feedbackdevicename string device name
feedbackosversion string phone system version
feedbackostype integer phone system type(1:ios; 2:android)
feedbackosjailbroken integer whether the phone jailbreak or root (1: yes;2: no)
feedbackfreeram string the remaining memory size of the phone
feedbackfreespace string the size of the remaining disk space on the phone
feedbacknetwork string mobile phone network
feedbacksdkversion string sdk version
feedbackfrom string feedback source
feedbackprocess integer feedback processing status (1: processed; 2: untreated)
apptype integer application type (1:ios; 2:android)
appname string app name
feedbackcreated string feedback creation time

view application crash log list

api url

post

parameters type description
aid string app id
_api_key string api key
page integer fill in the digital pages

return data

return parameter type description
sdkcrashgroupcount integer crash count
sdkcrashgrouptitle string crash title
sdkcrashgrouppattern string crash pattern
sdkcrashgroupdescribe string crash description
sdkcrashgroupappversion string crash app version
sdkcrashgroupprocess string crash processing state
sdkcrashgroupid integer crashgroupid
sdkcrashgroupcreated string crash create time

view application crash log detail

api url

post

parameters type description
aid string app id
sdkcrashgroupid integer sdkcrashgroupid, you can get some crash sdkcrashgroupid through the crashlistall interface
_api_key string api key

return data

return parameter type description
sdkcrashgrouplog string crash log
sdkcrashgroupcount integer crash count
sdkcrashgrouptitle string crash title
sdkcrashgrouppattern string crash pattern
sdkcrashgroupdescribe string crash description
sdkcrashgroupappversion string crash app version
sdkcrashgroupissymbolicated string crash log is symbolized
sdkcrashgroupisreaded string crash have read
sdkcrashgroupprocess string crash processing state
sdkcrashgroupviewstatus string crash view status
deviceaffectlist array affect the equipment situation
sdkcrashgroupcreated string crash create time