🏢Uploading builds via connect-API

Learn how to upload builds to the Connect API for releasing your game with the HMS Unity Plugin on EvilMindDevs Gitbook.

✨ Setting up Publishing API✨

To be able to use Publishing API, you need to create an API Client through AppGallery Connect.

After selecting your project on AGC, please go to Users and Permissions section. Find API key section on the left side and click Connect API. On the right side, you will see a button called "Create". Click on it to create an API Client for Connect API.

After creating your key, please copy Client ID and Key section.

Paste your Client ID to Client ID section, and Key to Client Secret section in Token Obtainer Editor.

Then go to Huawei > Connect API > Publishing API > Querying App Information. In this window, we can able to see our project information but the important part is not the info.

If you check the “Upload After Build” checkbox Unity will ask you to upload your app's APK or AAB packages to the App Gallery Connect whenever you make a successful build.

If you accept to upload (by clicking “OK”) then your newly built APK or AAB will be sent to your AGC website as a “Draft” new version.

Now, you can see your uploaded package by going to your project and clicking Draft from the left-hand menu.

Last updated