Forum Discussion

Elijah's avatar
Elijah
Level 2.0: Eclair
20 days ago

Managed Google Play For an Enterprise

I am trying to create a web token to embed managed google play iframe, the code is given below:

 

private static void getWebToken() throws GeneralSecurityException, IOException {
    WebToken webToken = getAndroidManagementClient().enterprises().webTokens().create("enterprises/LC01l28hdc",new WebToken()).execute();
    System.out.println("Web Token: "+ webToken.toPrettyString());
  }

  but after running it, I get a 400 Bad Request

  "code": 400

  "reason": "badRequest"

  "status": "INVALID_ARGUMENT"

No RepliesBe the first to reply