Module: Kuaipan::OpenAPI

Defined in:
lib/kuaipan.rb

Instance Method Summary collapse

Instance Method Details

#g_session(opt = {}) ⇒ Object



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

def g_session(opt={})
  Kuaipan::Session.new(opt)
end

#g_session_skip_oauth(oauth_token, oauth_token_secret, user_id, opts = {}) ⇒ Object



25
26
27
# File 'lib/kuaipan.rb', line 25

def g_session_skip_oauth(oauth_token, oauth_token_secret, user_id, opts={})
  Kuaipan::Session.skip_oauth_session(oauth_token, oauth_token_secret, user_id, opts={}) 
end

#input_config(consumer_token, consumer_secret, p = {}) ⇒ Object



17
18
19
# File 'lib/kuaipan.rb', line 17

def input_config(consumer_token, consumer_secret, p={})
  Kuaipan::Config.opts(consumer_token, consumer_secret, p)
end