Class: YandexOffers::Authorization
- Inherits:
-
Object
- Object
- YandexOffers::Authorization
- Defined in:
- lib/yandex_offers/authorization.rb
Instance Method Summary collapse
Instance Method Details
#get_token ⇒ Object
3 4 5 6 7 |
# File 'lib/yandex_offers/authorization.rb', line 3 def get_token = { body: { login: YandexOffers.configuration.login, password: YandexOffers.configuration.password } } response = Request.post("/users/login", ) response["accessToken"] end |