Skip to content
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

Chore: support for numeric file id #695

Merged
merged 3 commits into from
Mar 5, 2018
Merged

Conversation

DanDeMicco
Copy link
Contributor

Adds support for passing fileId's as a number. It currently breaks if a number is passed instead of a string

@boxcla
Copy link

boxcla commented Mar 1, 2018

Verified that @DanDeMicco has signed the CLA. Thanks for the pull request!

README.md Outdated
@@ -96,7 +96,7 @@ Initialization
var preview = new Box.Preview();
preview.show(fileId, accessToken, { options });
```
Where `fileId` is a string `Box_File` id and `accessToken` is a Box API access token.
Where `fileId` is a string or number `Box_File` id and `accessToken` is a Box API access token.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not change the documentation. We can add some more error recovery but we should recommend devs to still send strings.

@DanDeMicco DanDeMicco merged commit 040d148 into box:master Mar 5, 2018
@DanDeMicco DanDeMicco deleted the fileid-number branch March 5, 2018 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants