BoxItem.getSharedItem() should be able to use a RequestInterceptor
daviessm opened this issue · 1 comments
daviessm commented
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:
BoxItem.getSharedItem()
should copy theRequestInterceptor
from the suppliedBoxAPIConnection
, or- 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.