Module: Taobao::TOP
- Defined in:
- lib/taobao/top.rb,
lib/taobao/top/service.rb
Defined Under Namespace
Classes: Options, Params, Response, Service
Constant Summary
collapse
- @@sandbox =
false
Class Method Summary
collapse
Class Method Details
.gateways ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'lib/taobao/top.rb', line 13
def self.gateways
domain = self.sandbox? ? "tbsandbox" : "taobao"
{
:site => "http://gw.api.#{domain}.com/router/rest",
:authorize_url => "https://oauth.#{domain}.com/authorize",
:token_url => "https://oauth.#{domain}.com/token"
}
end
|
.sandbox? ⇒ Boolean
22
23
24
|
# File 'lib/taobao/top.rb', line 22
def self.sandbox?
!!self.sandbox
end
|