Method: Boxr.refresh_tokens
- Defined in:
- lib/boxr/auth.rb
.refresh_tokens(refresh_token, client_id: , client_secret: ) ⇒ Object Also known as: refresh_token
42 43 44 45 46 47 |
# File 'lib/boxr/auth.rb', line 42 def self.refresh_tokens(refresh_token, client_id: ENV['BOX_CLIENT_ID'], client_secret: ENV['BOX_CLIENT_SECRET']) uri = "https://api.box.com/oauth2/token" body = "grant_type=refresh_token&refresh_token=#{refresh_token}&client_id=#{client_id}&client_secret=#{client_secret}" auth_post(uri, body) end |