Class: Aliexpress::Base

Inherits:
Object
  • Object
show all
Extended by:
Configure
Defined in:
lib/aliexpress/base.rb

Constant Summary collapse

ACCESS_TOKEN_KEY =
'aliexpress_access_token_key'.freeze
REFRESH_TOKEN_KEY =
'aliexpress_refresh_token_key'.freeze

Class Method Summary collapse

Class Method Details

.api_endpoint(api_name, params) ⇒ Object

API 封装调用接口封装

Parameters:

  • api_name (string)
    • 速卖通 API 的名字

  • params (Hash)
    • api 的应用级参数


21
22
23
# File 'lib/aliexpress/base.rb', line 21

def self.api_endpoint(api_name, params)
  _api_endpoint(api_name: api_name, params: params)
end