lib/digital_river/auth.rb
# It asks the API for a new access token
#
# @return [Auth::Token]
#
# @api public
#
# @example
#   Auth.new("123abc", :password).token
It asks the API for a new access token
It asks the API for a new access token
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
It asks the API for a new access token
It asks the API for a new access token
None
Auth::Token
api
None
example
None