cianru / huawei-appgallery-publish-gradle-plugin

Huawei AppGallery Publish Gradle Plugin allows you to publish the android release build file (*.apk or *.aab) to the Huawei AppGallery store
Apache License 2.0
111 stars 20 forks source link

[NAMING] client key to client secret #8

Closed CedrickFlocon closed 3 years ago

CedrickFlocon commented 3 years ago

To be more consistent with the API and the AppGallery Connect platform, I propose to change the client_key into client_secret

Here is a file example download from the AppGallery Connect website.

{
    "type":"team_client_id",
    "developer_id":"XXXX",
    "client_id":"XXXX",
    "client_secret":"XXXX",
    "configuration_version":"1.0"
}

And here is the parameter of the request

        HttpPost post = new HttpPost(domain + "/oauth2/v1/token");
        JSONObject keyString = new JSONObject();
        keyString.put("client_id", "XXXX");
        keyString.put("client_secret", "XXXX");
        keyString.put("grant_type", "client_credentials");