I am trying to migrate from 2.7.0 to 3.0.0. The migration guide looks like not complete. Is there a complete page or document on things that were removed/changed/replaced ? The last thing I cannot solve is ManagementAPI.setApiToken()
Thank you for reaching out to us!
Reading through the Migration Guide, it appears that with Version 3 you will need to use a builder and include the token when making the call to the Management API:
import com.auth0.client.mgmt.ManagementApi;
ManagementApi client = ManagementApi
.builder()
.url("https://{YOUR_DOMAIN}/api/v2")
.token("{YOUR_API_TOKEN}")
.build();
There is also a second approach via OAuth client credentials flow which you can view in the guide, but I believe the above one is the most suitable for your use case.
Hope this helped!
Gerald