The flow is this:
1) Create a Project in Google developer console, enable Android Management API, create credentials and get the project id. (I think you already done that).
2) Create a SignupUrl
with signupUrls.create
. (What you have done to get that JSON)
3) Keep the SignupUrl Name
and redirect the user (or go) to the returned URL (inside the JSON posted).
3) Follow the procedure to create an enterprise.
This will start the creation of an enterprise to the signed Google Account.
4) At the end of the procedure you will be redirected to the callbackUrl
specified inside signupUrls.create
. Appended to the callbackUrl
, as a GET query parameter, will be a token.
5) You must use the appended token to conclude the flow calling the API enterprises.create
with these parameters:
- The signup url name
- The enterprise token returned as parameter
- (optional) a request body with some enterprise parameters (logo, name, etc)
At the end of this coming and going between URLs and API calls, you will end with an Enterprise created on the Google Account and the enterprise ID in the form enterprise/<yourID>
to interact with the API.
You can check all the Enterprise infos at the created Google Play for Work (or Managed Google Play) at http://play.google.com/work . Left menu "Administration Settings" at check your enterpriseId
.