Skip to content

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