-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: stop using SharedLinkAPIConnection
in getSharedItem()
#1234
Conversation
Pull Request Test Coverage Report for Build #3626Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the example to dive out the deprecated usage.
doc/shared-items.md
Outdated
@@ -31,6 +31,7 @@ BoxItem.Info itemInfo = BoxItem.getSharedItem(api, sharedLink, password); | |||
If you already know the type and ID of the item you want to access, you can | |||
manually construct a [`SharedLinkAPIConnection`][shared-link-api] and make | |||
API calls on the item directly. | |||
Note: `SharedLinkAPIConnection` is now deprecated. Please use `BoxItem.getSharedItem()` method instead. | |||
|
|||
```java | |||
String sharedLink = "https://app.box.com/s/abcdefghijklmnopqrstuvwxyz123456"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we mark it as deprecated why not provide example with new usage? And show it in the documentation instead of deprecated one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a few lines above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you think we should duplicate it here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.