box/box-java-sdk

BoxItem.getSharedItem() should be able to use a RequestInterceptor

daviessm opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

I have a RequestInterceptor that counts API calls per user session, but calling BoxItem.getSharedItem() does not apply the interceptor because it creates its own SharedLinkAPIConnection and does not use the interceptor in the supplied BoxAPIConnection.

Describe the solution you'd like

Either:

  1. BoxItem.getSharedItem() should copy the RequestInterceptor from the supplied BoxAPIConnection, or
  2. A new overloaded function which takes a RequestInterceptor as an additional parameter should be provided.

Describe alternatives you've considered

Currently I have created my own version of getSharedItem() which copies the RequestInterceptor from the supplied API connection.

Hello @daviessm,

I've added this to our internal tracking tool, (SDK-3324). We will look into adding this.