Home
Softono

Appgallery Publisher

Open source Apache-2.0 JavaScript
21
Stars
0
Forks
0
Issues
2
Watchers
4 years
Last Commit

 About Appgallery Publisher

Upload or Upload & Publish your bundle (apk or aab) to Huawei AppGallery with ConnectApi

Platforms

Web Self-hosted iOS

Languages

JavaScript

Links

Need Help Installing Appgallery Publisher?

We provide expert installation service for this software. Our team will install, configure, and secure Appgallery Publisher on your server. plans start at just $30.

Appgallery Publisher

View on GitHub

appgallery-publisher

Upload/Publish your bundle (apk or aab) to AppGallery automatically with appgallery-publisher

Usage

Query Params

- appId (required, string)
- submit (optional, boolean)

Body

{
    "client_id": "client_id",
    "client_secret": "client_secret",
    "artifact_path": "path" (etc: /Users/mustafa.yigit/Desktop/app-release.aab)
}

Request

POST -> http://localhost:3000/publish?appId=105596257&submit=true

Response

* upload only

"result": {
    "packageVersion": "98591645147584"
}

* upload & publish

"result": "success"

Steps

  1. getToken(clientId, clientSecret)
  2. getUploadUrl(appId, suffix, clientId, token)
  3. getArtifactFromPath(path)
  4. uploadArtifact(artifact, suffix, uploadUrl, authCode)
  5. updateConsole(appId, suffix, clientId, token, uploadResult)
  6. publish(token, clientId, appId)