Class: DiandianOAuth::API

Inherits:
Object
  • Object
show all
Includes:
Interface
Defined in:
lib/diandian_oauth/api.rb,
lib/diandian_oauth/api/interface.rb

Defined Under Namespace

Modules: Interface

Constant Summary collapse

HOST =
'api.diandian.com'
VERSION =
'v1'

Instance Method Summary collapse

Methods included from Interface

included

Instance Method Details

#authorize_urlObject



8
9
10
# File 'lib/diandian_oauth/api.rb', line 8

def authorize_url
  'https://api.diandian.com/oauth/authorize'
end

#token_urlObject



12
13
14
# File 'lib/diandian_oauth/api.rb', line 12

def token_url
  'https://api.diandian.com/oauth/token'
end