lib/digital_river/auth/refresh_token.rb
# Refreshes token, so the ttl live will be increased
#
# @param [String] client_id
#
# @param [Auth::Token] token
#
# @return [Auth::Token]
#
# @api public
#
# @example
#   refresh = RefreshToken.new("123abc", token)
#   refresh.token
Refreshes token, so the ttl live will be increased
Refreshes token so the ttl live will be increased
def token
        response = Request.post(url,
                                :headers => headers,
                                :body => body.to_param)
        if response.errors?
          raise response.to_exception
        else
          Token.build(response.body)
        end
      end
def token response = Request . post ( url , :headers => headers , :body => body . to_param ) if response . errors? raise response . to_exception else Token . build ( response . body ) end end
Refreshes token, so the ttl live will be increased
Refreshes token so the ttl live will be increased
None
Auth::Token
None
api
None
example
refresh = RefreshToken.new("123abc", token) refresh.token
refresh = RefreshToken . new ( " 123abc " token ) refresh . token