Skip to content

Parameters are in the wrong order in BoxEnterprise getEnterpriseEvents #88

@ericswinehart

Description

@ericswinehart

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)
                }
            );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions