1.创建服务账号(serviceAccount) 下载秘钥配置于java服务中
2.获取token 设置Authorization header中
private final static String[] SCOPES = {"https://www.googleapis.com/auth/androidpublisher"};
GoogleCredential credential = GoogleCredential.fromStream(new ClassPathResource("pure-league-331802-0110d3d3af0c.json").getInputStream())
.createScoped(Arrays.asList(SCOPES));
credential.refreshToken();
System.out.println(credential.getAccessToken());
3.在GP发布页面https://play.google.com/apps/publish/添加服务账户的邮箱