Skip to content

Instantly share code, notes, and snippets.

@travisdmathis
Created November 19, 2014 18:05
Show Gist options
  • Save travisdmathis/01ac53b3d289942fb4e4 to your computer and use it in GitHub Desktop.
Save travisdmathis/01ac53b3d289942fb4e4 to your computer and use it in GitHub Desktop.
box_session = RubyBox::Session.new({
client_id: box_keys[:client_id],
client_secret: box_keys[:client_secret],
access_token: current_user.oauth2_users.find_by_provider('box_oauth2').access_token
})
@box_client = RubyBox::Client.new(box_session)
@files_and_folders = @box_client.root_folder.items
returns: Completed 500 Internal Server Error in 752.9ms RubyBox::AuthError (no data returned):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment