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

feature: error-checking on the request #93

Open
ijlyttle opened this issue Feb 23, 2019 · 0 comments
Open

feature: error-checking on the request #93

ijlyttle opened this issue Feb 23, 2019 · 0 comments

Comments

@ijlyttle
Copy link
Member

I was having trouble to get the "versions" test working - so I had box_previous_versions() print out the response object:

List of 6
 $ type      : chr "error"
 $ status    : int 403
 $ code      : chr "forbidden"
 $ help_url  : chr "http://developers.box.com/docs/#errors"
 $ message   : chr "User needs to upgrade"
 $ request_id: chr "a9n6q2g0h15edela"

This is a longer-term "thing", but it would be nice to have a single function that makes requests of the API, checks the response, then returns the response to the higher-level function.

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

No branches or pull requests

1 participant