Class: YandexOffers::Authorization

Inherits:
Object
  • Object
show all
Defined in:
lib/yandex_offers/authorization.rb

Instance Method Summary collapse

Instance Method Details

#get_tokenObject



3
4
5
6
7
# File 'lib/yandex_offers/authorization.rb', line 3

def get_token
  options = { body: { login: YandexOffers.configuration., password: YandexOffers.configuration.password } }
  response = Request.post("/users/login", options)
  response["accessToken"]
end