Class: PlentyClient::Market::Ebay::Authentication

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Request
Defined in:
lib/plenty_client/market/ebay/authentication.rb

Constant Summary collapse

FIND_MARKET_EBAY_AUTH_URL =
'/markets/ebay/auth/login'
REFRESH_MARKET_EBAY_AUTH_TOKEN =
'/markets/ebay/auth/refresh-token'

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.find_login_url(headers = {}, &block) ⇒ Object



14
15
16
# File 'lib/plenty_client/market/ebay/authentication.rb', line 14

def (headers = {}, &block)
  get(build_endpoint(FIND_MARKET_EBAY_AUTH_URL), headers, &block)
end

.refrest_token(body = {}) ⇒ Object



18
19
20
# File 'lib/plenty_client/market/ebay/authentication.rb', line 18

def refrest_token(body = {})
  put(build_endpoint(REFRESH_MARKET_EBAY_AUTH_TOKEN), body)
end