Class: Aliexpress::Authorization

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

Constant Summary

Constants inherited from Base

Base::ACCESS_TOKEN_KEY, Base::REFRESH_TOKEN_KEY

Class Method Summary collapse

Methods inherited from Base

api_endpoint

Class Method Details

.get_authObject

获取授权的地址 参考: Sidekiq 的实现,其 web 授权。


8
9
10
# File 'lib/aliexpress/authorization.rb', line 8

def self.get_auth
  "#{auth_url}?client_id=#{Aliexpress.app_key}&site=aliexpress&redirect_uri="
end