box / box-salesforce-sdk

This is the Salesforce SDK for integrating with the Box Platform.
https://developer.box.com/guides/tooling/sdks/salesforce/
Apache License 2.0
58 stars 51 forks source link

Parameters are in the wrong order in BoxEnterprise getEnterpriseEvents #88

Open ericswinehart opened 2 years ago

ericswinehart commented 2 years ago

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.

        String url =
            this.api.baseUrl +
            String.format(
                GET_ENTERPRISE_EVENTS_URL,
                new List<String>{
                    streamPosition,
                    String.valueOf(numberOfEventsLimit)
                }
            );