I am trying to develop an integration with box. I am using "box-api", "~> 0.2.2" gem. I have an api key.
box_object = Box::Api.new("j7p3zz29xgva8t52lgoptyxuavtji66y")
ticket = box_object.get_ticket
auth_key= box_object.get_auth_token(ticket[:ticket])
i am getting this exception Box::Api::NotAuthorized: not_logged_in
Can anyone suggest what is going wrong?
the ticket
is used to construct a URL to which your app must redirect the user. This is the first leg of the v1 authentication process. This documentation provides a guide.