An unofficial Tencent Qcloud API SDK for Ruby
安装
gem install qcloud_ruby
使用
- 使用之前请在腾讯云的云 API 控制台中创建自己的安全凭证(SecretId 和 SecretKey). SecretKey 要严格保管, 避免泄露.
- 安装并引入本 SDK.
示例
::QcloudRuby.configure do |config|
config.secret_id = 'Secret id'
config.secret_key = 'Secret key'
end
resp = ::QcloudRuby.post(
service_type: ::QcloudRuby::ServiceType::ACCOUNT,
region: 'gz',
action: 'DescribeProject'
)
resp = ::QcloudRuby.get(
service_type: ::QcloudRuby::ServiceType::CVM,
region: 'gz',
action: 'DescribeInstances'
)
SDK API
请访问 api.md