Skip to content

Commit e5f1810

Browse files
authored
Merge pull request #284 from XeroAPI/sid-development
Update README.md
2 parents 93395e5 + 5cef4a6 commit e5f1810

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -601,18 +601,19 @@ public class TokenRefresh {
601601
```
602602

603603
**Revoking Tokens**
604+
604605
You can revoke a user's refresh token and remove all their connections to your app by making a request to the revocation endpoint.
605606

606607
We've added a helpful method to the ApiClient class. The code below shows how to pass the id, secret and refresh token to execute the revoke method. Success
607608

608609
```java
609-
try {
610-
ApiClient apiClient = new ApiClient();
611-
HttpResponse revokeResponse = apiClient.revoke(clientId, clientSecret, refreshToken);
612-
System.out.println("Revoke success: " + revokeResponse.getStatusCode());
613-
} catch (Exception e) {
614-
System.out.println(e.getMessage());
615-
}
610+
try {
611+
ApiClient apiClient = new ApiClient();
612+
HttpResponse revokeResponse = apiClient.revoke(clientId, clientSecret, refreshToken);
613+
System.out.println("Revoke success: " + revokeResponse.getStatusCode());
614+
} catch (Exception e) {
615+
System.out.println(e.getMessage());
616+
}
616617
```
617618

618619
**Data Endpoints**

0 commit comments

Comments
 (0)