public TargetsResponse getTarget(BigDecimal id, String type) throws ApiException {
        ApiResponse<TargetsResponse> resp = getTargetWithHttpInfo(id, type);
        return resp.getData();
    }
public TargetsResponse getTarget ( BigDecimal id , String type ) throws ApiException { ApiResponse < TargetsResponse > resp = getTargetWithHttpInfo ( id , type ) ; return resp . getData ( ) ; }
Get a target
Get a specific target by type and ID. Targets can be agents, agent groups, queues, route points, skills, and custom contacts.
@param id The ID of the target. (required)
@param type The type of target to retrieve. (required)
@return TargetsResponse
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body