...
ApiClient.java: This Java file contains Main, Login, Logout methods. Also, configuration attributes- URL, username, and password.
CprDetails.java: This file includes JSON payload in string format. It returns your JSON payload.
CprService.java: This file contains one method which accepts authentication token and URL.
Reference Code
...