|
@@ -27,7 +27,7 @@ public class KuaishouMediaClient {
|
|
|
public JsonNode exchangeToken(MediaAuthConfig config, String authCode) {
|
|
public JsonNode exchangeToken(MediaAuthConfig config, String authCode) {
|
|
|
Map<String, Object> body = new HashMap<>();
|
|
Map<String, Object> body = new HashMap<>();
|
|
|
body.put("app_id", config.getAppId());
|
|
body.put("app_id", config.getAppId());
|
|
|
- body.put("app_secret", config.getAppSecret());
|
|
|
|
|
|
|
+ body.put("secret", config.getAppSecret());
|
|
|
body.put("auth_code", authCode);
|
|
body.put("auth_code", authCode);
|
|
|
return postJson(TOKEN_URL, body);
|
|
return postJson(TOKEN_URL, body);
|
|
|
}
|
|
}
|