The URL string has the limit parameter as item 0 and stream_position as item 1.
private static final String GET_ENTERPRISE_EVENTS_URL = '/events?stream_type=admin_logs&limit={0}&stream_position={1}';
But when replacing the values in the getEnterpriseEvents method, streamPosition is first and numberOfEventsLimit is second.
The URL string has the limit parameter as item 0 and stream_position as item 1.
private static final String GET_ENTERPRISE_EVENTS_URL = '/events?stream_type=admin_logs&limit={0}&stream_position={1}';
But when replacing the values in the getEnterpriseEvents method, streamPosition is first and numberOfEventsLimit is second.