module YuntongxunSdk
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/yuntongxun_sdk.rb, line 17 def config @config ||= Configuration.new end
configure() { |config| ... }
click to toggle source
# File lib/yuntongxun_sdk.rb, line 13 def configure yield config end
make_request(url, method, payload = {}, headers = {})
click to toggle source
# File lib/yuntongxun_sdk.rb, line 22 def self.make_request(url, method, payload = {}, headers = {}) RestClient::Request.execute(method: method, url: url, payload: payload.to_json, headers: headers) end