|
@@ -1,6 +1,8 @@
|
|
|
# Alibaba Cloud C++ Software Development Kit
|
|
# Alibaba Cloud C++ Software Development Kit
|
|
|
[中文文档](./README_zh.md)
|
|
[中文文档](./README_zh.md)
|
|
|
|
|
|
|
|
|
|
+- [](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
|
|
|
|
|
+
|
|
|
The Alibaba Cloud C++ Software Development Kit (SDK) allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
|
The Alibaba Cloud C++ Software Development Kit (SDK) allows you to access Alibaba Cloud services such as Elastic Compute Service (ECS), Server Load Balancer (SLB), and CloudMonitor. You can access Alibaba Cloud services without the need to handle API related tasks, such as signing and constructing your requests.
|
|
|
|
|
|
|
|
This document introduces how to obtain and call Alibaba Cloud C++ SDK.
|
|
This document introduces how to obtain and call Alibaba Cloud C++ SDK.
|
|
@@ -64,18 +66,18 @@ int main(int argc, char** argv)
|
|
|
request.setPageSize(10);
|
|
request.setPageSize(10);
|
|
|
|
|
|
|
|
auto outcome = client.describeInstances(request);
|
|
auto outcome = client.describeInstances(request);
|
|
|
- if (!outcome.isSuccess())
|
|
|
|
|
|
|
+ if (!outcome.isSuccess())
|
|
|
{
|
|
{
|
|
|
// Handle exceptions
|
|
// Handle exceptions
|
|
|
std::cout << outcome.error().errorCode() << std::endl;
|
|
std::cout << outcome.error().errorCode() << std::endl;
|
|
|
AlibabaCloud::ShutdownSdk();
|
|
AlibabaCloud::ShutdownSdk();
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
std::cout << "totalCount: " << outcome.result().getTotalCount() << std::endl;
|
|
std::cout << "totalCount: " << outcome.result().getTotalCount() << std::endl;
|
|
|
|
|
|
|
|
// Close the SDK
|
|
// Close the SDK
|
|
|
AlibabaCloud::ShutdownSdk();
|
|
AlibabaCloud::ShutdownSdk();
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
-```
|
|
|
|
|
|
|
+```
|