Module: YuntongxunSdk
- Defined in:
- lib/yuntongxun_sdk.rb,
lib/yuntongxun_sdk/api.rb,
lib/yuntongxun_sdk/version.rb
Defined Under Namespace
Classes: API, Configuration
Constant Summary
collapse
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
17
18
19
|
# File 'lib/yuntongxun_sdk.rb', line 17
def config
@config ||= Configuration.new
end
|
13
14
15
|
# File 'lib/yuntongxun_sdk.rb', line 13
def configure
yield config
end
|
.make_request(url, method, payload = {}, headers = {}) ⇒ Object
22
23
24
|
# File 'lib/yuntongxun_sdk.rb', line 22
def self.make_request(url, method, payload = {}, = {})
RestClient::Request.execute(method: method, url: url, payload: payload.to_json, headers: )
end
|