Class: YunTongXun::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/yuntongxun_api/configuration.rb

Instance Method Summary collapse

Instance Method Details

#account_sidObject



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

def 
  @account_sid ||= 'your_account_sid'
end

#account_sid=(account_sid) ⇒ Object



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

def ()
  @account_sid = 
end

#app_idObject



33
34
35
# File 'lib/yuntongxun_api/configuration.rb', line 33

def app_id
  @app_id ||= 'your_app_id'
end

#app_id=(app_id) ⇒ Object



37
38
39
# File 'lib/yuntongxun_api/configuration.rb', line 37

def app_id=(app_id)
  @app_id = app_id
end

#auth_tokenObject



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

def auth_token
  @auth_token ||= 'your_auth_token'
end

#auth_token=(auth_token) ⇒ Object



29
30
31
# File 'lib/yuntongxun_api/configuration.rb', line 29

def auth_token=(auth_token)
  @auth_token = auth_token
end

#serverObject

API请求地址分为正式(http/https)和沙箱(http/https)共四个地址 正式-http: app.cloopen.com:8883 正式-https: app.cloopen.com:8883 沙箱-http: sandboxapp.cloopen.com:8883 沙箱-https: sandboxapp.cloopen.com:8883



9
10
11
# File 'lib/yuntongxun_api/configuration.rb', line 9

def server
  @server ||= 'https://app.cloopen.com:8883'
end

#server=(server) ⇒ Object



13
14
15
# File 'lib/yuntongxun_api/configuration.rb', line 13

def server=(server)
  @server = server
end

#versionObject



41
42
43
# File 'lib/yuntongxun_api/configuration.rb', line 41

def version
  @version ||= 'version'
end

#version=(version) ⇒ Object



45
46
47
# File 'lib/yuntongxun_api/configuration.rb', line 45

def version=(version)
  @version = version
end