ParameterMap usage = new ParameterMap(); // Create 1st Level PM for usage
usage.add("hits", "3"); // Add number of hits metric
params.add("usage", usage); // Add 1st level to top level as "usage"
try {
final AuthorizeResponse response = serviceApi.authrep(params); // Perform the AuthRep and get the response
if (response.success()) { // Check if the AuthRep succeeded
// Perform your calls there
} else {
// Handle failure here