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

Add possibility to specify which fields should be loaded #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrhead
Copy link

@mrhead mrhead commented Nov 27, 2014

Before this commit it was impossible to load particular items with custom fields. With this commit you can do it directly when loading item by ID:

file = client.file_by_id('12345', [:name, :version_number])
file.version_number

Or manually by calling #update_metadata:

file = client.file('document.pdf')
file.reload_meta([:version_number])
file.version_number

You can find more information here: https://developers.box.com/docs/#fields

Before this commit it was impossible to load particular items with
custom fields. With this commit you can do it directly when loading
item by ID:

```
file = client.file_by_id('12345', [:name, :version_number])
file.version_number
```

Or manually by calling `#update_metadata`:

```
file = client.file('document.pdf')
file.reload_meta([:version_number])
file.version_number
```

You can find more information here: https://developers.box.com/docs/#fields
@mrhead
Copy link
Author

mrhead commented Nov 27, 2014

I have issues running integration test suite. I am not sure what token should I put into account.yml. I tried developer token, access token, refresh token but neither of them worked and I always ended up with RubyBox::AuthError.

So any comments to this PR or help with integration testing are welcome.

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.

1 participant