class YunTongXun::Configuration

Public Instance Methods

account_sid() click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 17
def account_sid
  @account_sid ||= 'your_account_sid'
end
account_sid=(account_sid) click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 21
def account_sid=(account_sid)
  @account_sid = account_sid
end
app_id() click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 33
def app_id
  @app_id ||= 'your_app_id'
end
app_id=(app_id) click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 37
def app_id=(app_id)
  @app_id = app_id
end
auth_token() click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 25
def auth_token
  @auth_token ||= 'your_auth_token'
end
auth_token=(auth_token) click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 29
def auth_token=(auth_token)
  @auth_token = auth_token
end
server() click to toggle source

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

# File lib/yuntongxun_api/configuration.rb, line 9
def server
  @server ||= 'https://app.cloopen.com:8883'
end
server=(server) click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 13
def server=(server)
  @server = server
end
version() click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 41
def version
  @version ||= 'version'
end
version=(version) click to toggle source
# File lib/yuntongxun_api/configuration.rb, line 45
def version=(version)
  @version = version
end