|
1 | 1 | # Auth0 Java |
2 | 2 |
|
3 | 3 | [![Build-Circle][circle-ci-badge]][circle-ci-url] |
4 | | -[![Build-Travis][travis-ci-badge]][travis-ci-url] |
5 | 4 | [![MIT][mit-badge]][mit-url] |
6 | 5 | [![Maven][maven-badge]][maven-url] |
7 | 6 | [![JCenter][jcenter-badge]][jcenter-url] |
@@ -240,20 +239,20 @@ ManagementAPI mgmt = new ManagementAPI("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}"); |
240 | 239 |
|
241 | 240 | The Management API is divided into different entities. Each of them have the list, create, update, delete and update methods plus a few more if corresponds. The calls are authenticated using the API Token given in the `ManagementAPI` instance creation and must contain the `scope` required by each entity. See the javadoc for details on which `scope` is expected for each call. |
242 | 241 |
|
243 | | -* **Client Grants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants). Access the methods by calling `mgmt.clientGrants()`. |
244 | | -* **Clients:** See [Docs](https://auth0.com/docs/api/management/v2#!/Clients/get_clients). Access the methods by calling `mgmt.clients()`. |
245 | | -* **Connections:** See [Docs](https://auth0.com/docs/api/management/v2#!/Connections/get_connections). Access the methods by calling `mgmt.connections()`. |
246 | | -* **Device Credentials:** See [Docs](https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials). Access the methods by calling `mgmt.deviceCredentials()`. |
247 | | -* **Logs:** See [Docs](https://auth0.com/docs/api/management/v2#!/Logs/get_logs). Access the methods by calling `mgmt.logEvents()`. |
248 | | -* **Rules:** See [Docs](https://auth0.com/docs/api/management/v2#!/Rules/get_rules). Access the methods by calling `mgmt.rules()`. |
249 | | -* **User Blocks:** See [Docs](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks). Access the methods by calling `mgmt.userBlocks()`. |
250 | | -* **Users:** See [Docs](https://auth0.com/docs/api/management/v2#!/Users/get_users). Access the methods by calling `mgmt.users()`. |
251 | | -* **Blacklists:** See [Docs](https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens). Access the methods by calling `mgmt.blacklists()`. |
252 | | -* **Emails:** See [Docs](https://auth0.com/docs/api/management/v2#!/Emails/get_provider). Access the methods by calling `mgmt.emailProvider()`. |
253 | | -* **Guardian:** See [Docs](https://auth0.com/docs/api/management/v2#!/Guardian/get_factors). Access the methods by calling `mgmt.guardian()`. |
254 | | -* **Stats:** See [Docs](https://auth0.com/docs/api/management/v2#!/Stats/get_active_users). Access the methods by calling `mgmt.stats()`. |
255 | | -* **Tenants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tenants/get_settings). Access the methods by calling `mgmt.tenants()`. |
256 | | -* **Tickets:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tickets/post_email_verification). Access the methods by calling `mgmt.tickets()`. |
| 242 | +* **Client Grants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants). Access the methods by calling `mgmt.clientGrants()`. |
| 243 | +* **Clients:** See [Docs](https://auth0.com/docs/api/management/v2#!/Clients/get_clients). Access the methods by calling `mgmt.clients()`. |
| 244 | +* **Connections:** See [Docs](https://auth0.com/docs/api/management/v2#!/Connections/get_connections). Access the methods by calling `mgmt.connections()`. |
| 245 | +* **Device Credentials:** See [Docs](https://auth0.com/docs/api/management/v2#!/Device_Credentials/get_device_credentials). Access the methods by calling `mgmt.deviceCredentials()`. |
| 246 | +* **Logs:** See [Docs](https://auth0.com/docs/api/management/v2#!/Logs/get_logs). Access the methods by calling `mgmt.logEvents()`. |
| 247 | +* **Rules:** See [Docs](https://auth0.com/docs/api/management/v2#!/Rules/get_rules). Access the methods by calling `mgmt.rules()`. |
| 248 | +* **User Blocks:** See [Docs](https://auth0.com/docs/api/management/v2#!/User_Blocks/get_user_blocks). Access the methods by calling `mgmt.userBlocks()`. |
| 249 | +* **Users:** See [Docs](https://auth0.com/docs/api/management/v2#!/Users/get_users). Access the methods by calling `mgmt.users()`. |
| 250 | +* **Blacklists:** See [Docs](https://auth0.com/docs/api/management/v2#!/Blacklists/get_tokens). Access the methods by calling `mgmt.blacklists()`. |
| 251 | +* **Emails:** See [Docs](https://auth0.com/docs/api/management/v2#!/Emails/get_provider). Access the methods by calling `mgmt.emailProvider()`. |
| 252 | +* **Guardian:** See [Docs](https://auth0.com/docs/api/management/v2#!/Guardian/get_factors). Access the methods by calling `mgmt.guardian()`. |
| 253 | +* **Stats:** See [Docs](https://auth0.com/docs/api/management/v2#!/Stats/get_active_users). Access the methods by calling `mgmt.stats()`. |
| 254 | +* **Tenants:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tenants/get_settings). Access the methods by calling `mgmt.tenants()`. |
| 255 | +* **Tickets:** See [Docs](https://auth0.com/docs/api/management/v2#!/Tickets/post_email_verification). Access the methods by calling `mgmt.tickets()`. |
257 | 256 |
|
258 | 257 |
|
259 | 258 | ### Users |
@@ -469,13 +468,13 @@ try { |
469 | 468 |
|
470 | 469 | ## Error Handling |
471 | 470 |
|
472 | | -The API Clients throw `Auth0Exception` when an unexpected error happens on a request execution, i.e. Connectivity or Timeout error. |
| 471 | +The API Clients throw `Auth0Exception` when an unexpected error happens on a request execution, i.e. Connectivity or Timeout error. |
473 | 472 |
|
474 | 473 | If you need to handle different error scenarios you need to catch first `APIException`, which provides methods to get a clue of what went wrong. |
475 | 474 |
|
476 | | -The APIExplorer includes a list of response messages for each endpoint. You can get a clue of what went wrong by asking the Http status code: `exception.getStatusCode()`. i.e. a `status_code=403` would mean that the token has an insufficient scope. |
| 475 | +The APIExplorer includes a list of response messages for each endpoint. You can get a clue of what went wrong by asking the Http status code: `exception.getStatusCode()`. i.e. a `status_code=403` would mean that the token has an insufficient scope. |
477 | 476 |
|
478 | | -An error code will be included to categorize the type of error, you can get it by calling `exception.getError()`. If you want to see a user friendly description of what happened and why the request is failing check the `exception.getDescription()`. |
| 477 | +An error code will be included to categorize the type of error, you can get it by calling `exception.getError()`. If you want to see a user friendly description of what happened and why the request is failing check the `exception.getDescription()`. |
479 | 478 |
|
480 | 479 |
|
481 | 480 | ``` |
@@ -524,8 +523,6 @@ This project is licensed under the MIT license. See the [LICENSE](LICENSE) file |
524 | 523 |
|
525 | 524 | [circle-ci-badge]: https://img.shields.io/circleci/project/github/auth0/auth0-java.svg?style=flat |
526 | 525 | [circle-ci-url]: https://circleci.com/gh/auth0/auth0-java/tree/master |
527 | | -[travis-ci-badge]: https://travis-ci.org/auth0/auth0-java.svg?branch=master |
528 | | -[travis-ci-url]: https://travis-ci.org/auth0/auth0-java |
529 | 526 | [mit-badge]: http://img.shields.io/:license-mit-blue.svg?style=flat |
530 | 527 | [mit-url]: https://raw.githubusercontent.com/auth0/auth0-java/master/LICENSE |
531 | 528 | [maven-badge]: https://img.shields.io/maven-central/v/com.auth0/auth0.svg |
|
0 commit comments