Skip to content

Commit fe958d3

Browse files
zhangzifaJacksonTian
authored andcommitted
refactor readme
1 parent 96bab78 commit fe958d3

File tree

3 files changed

+82
-28
lines changed

3 files changed

+82
-28
lines changed

CONTRIBUTING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Contributing to this SDK project
2+
3+
We work hard to provide a high-quality and useful SDK for Alibaba Cloud, and
4+
we greatly value feedback and contributions from our community. Please submit
5+
your [issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues) or [pull requests](https://github.com/aliyun/aliyun-openapi-cpp-sdk/pulls) through GitHub.
6+
7+
## Tips
8+
9+
- The SDK is released under the [Apache license][license]. Any code you submit
10+
will be released under that license. For substantial contributions, we may
11+
ask you to sign a [Alibaba Documentation Corporate Contributor License
12+
Agreement (CLA)][cla].
13+
- We maintain a high percentage of code coverage in our unit tests. If you make
14+
changes to the code, please add, update, and/or remove tests as appropriate.
15+
16+
[issues]: https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues
17+
[pull-requests]: https://github.com/aliyun-openapi-cpp-sdk/pulls
18+
[license]: http://www.apache.org/licenses/LICENSE-2.0
19+
[cla]: https://alibaba-cla-2018.oss-cn-beijing.aliyuncs.com/Alibaba_Documentation_Open_Source_Corporate_CLA.pdf
20+
[docs-readme]: https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/README.md

README.md

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
1-
# Alibaba Cloud C++ Software Development Kit
2-
[中文文档](./README_zh.md)
1+
English | [简体中文](./README_zh.md)
32

4-
[![Build Status](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk.svg?branch=master)](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
5-
[![codecov](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk)
63

7-
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.
4+
<p align="center">
5+
<a href="https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg"></a>
6+
</p>
87

9-
This document introduces how to obtain and call Alibaba Cloud C++ SDK.
8+
<h1 align="center">Alibaba Cloud SDK for C++</h1>
9+
10+
<p align="center">
11+
<a href="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk"><img src="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk.svg?branch=master" alt="Travis Build Status"></a>
12+
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
13+
</p>
14+
15+
16+
The 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.
17+
18+
This document introduces how to obtain and call this SDK.
1019

1120
If you have any problem while using C++ SDK, please submit an [issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new).
1221

13-
## Prerequisites
22+
## Requirements
1423

15-
- To use Alibaba Cloud C++ SDK, you must have an Alibaba Cloud account and an AccessKey.
24+
- To use this SDK, you must have an Alibaba Cloud account and an AccessKey.
1625

1726
The AccessKey is required when initializing the client. You can create an AccessKey in the Alibaba Cloud console. For more information, see [Create an AccessKey](https://usercenter.console.aliyun.com/?spm=5176.doc52740.2.3.QKZk8w#/manage/ak).
1827

1928
>**Note:** To increase the security of your account, we recommend that you use the AccessKey of the RAM user to access Alibaba Cloud services.
2029

21-
- To use Alibaba Cloud C++ SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
30+
- To use this SDK to access the APIs of a product, you must first activate the product on the [Alibaba Cloud console](https://home.console.aliyun.com/?spm=5176.doc52740.2.4.QKZk8w) if required.
2231

2332
- C++11 supported compiler installed
2433
- Windows: Visual Studio 2015 or newer
2534
- Linux: GCC 4.9 or newer
2635
- CMake 3.0 or newer
2736
- 4G memory or more
2837

29-
## Install C++ SDK from source code
30-
38+
## Installation
3139

3240
### Linux
3341

@@ -106,9 +114,9 @@ If you have any problem while using C++ SDK, please submit an [issue](https://gi
106114
**SDK will be installed to `C:\Program File (x86)\alibabacloud-sdk`**
107115

108116

109-
## Use the C++ SDK
117+
## Quick Examples
110118

111-
Before using C++ SDK, you must first configure the preprocessor to define `ALIBABACLOUD_SHARED` to achieve dynamic linking with Alibaba Cloud C++ SDK shared libraries. Then you must create a client instance, specify the region of cloud services and provide authentication parameters before sending API requests.
119+
Before using this SDK, you must first configure the preprocessor to define `ALIBABACLOUD_SHARED` to achieve dynamic linking with the SDK shared libraries. Then you must create a client instance, specify the region of cloud services and provide authentication parameters before sending API requests.
112120

113121
The following code shows how to call the [DescribeInstances](~~25506~~) API of ECS to query detailed information of all ECS instances in a specific region.
114122

@@ -222,9 +230,18 @@ int main(int argc, char** argv) {
222230
223231
```
224232
233+
**More [examples](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
225234
235+
## Issues
236+
[Opening an Issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new/choose), Issues not conforming to the guidelines may be closed immediately.
226237
227-
**More [examples](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
238+
## Changelog
239+
Detailed changes for each release are documented in the [release notes](CHANGELOG).
240+
241+
## Contribution
242+
Please make sure to read the [Contributing Guide](CONTRIBUTING.md) before making a pull request.
243+
244+
## License
245+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
228246
229-
## LICENSE
230-
Please refer to [LICENSE](https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/LICENSE) (Apache 2.0 LICENSE).
247+
Copyright 1999-2019 Alibaba Group Holding Ltd.

README_zh.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
# 阿里云开发者C++工具套件
1+
[English](./README.md) | 简体中文
22

3-
[![Build Status](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk.svg?branch=master)](https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk)
4-
[![codecov](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk)
53

6-
欢迎使用阿里云开发者工具套件(SDK)。
4+
<p align="center">
5+
<a href="https://www.alibabacloud.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/Aliyun.svg"></a>
6+
</p>
77

8-
适用于阿里云的 C++ SDK 提供了一组现代化的 C++(C++ 11 或更高版本)接口,让您不用复杂编程即可访问云服务器、云监控等多个阿里云服务。
8+
<h1 align="center">Alibaba Cloud SDK for C++</h1>
9+
10+
<p align="center">
11+
<a href="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk"><img src="https://travis-ci.org/aliyun/aliyun-openapi-cpp-sdk.svg?branch=master" alt="Travis Build Status"></a>
12+
<a href="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk"><img src="https://codecov.io/gh/aliyun/aliyun-openapi-cpp-sdk/branch/master/graph/badge.svg" alt="codecov"></a>
13+
</p>
14+
15+
16+
欢迎使用阿里云开发者工具套件(SDK)。阿里云 C++ SDK 让您不用复杂编程即可访问云服务器、云监控等阿里云服务。这里向您介绍如何获取阿里云 C++ SDK 并开始调用。
917

1018
如果您在使用SDK的过程中遇到任何问题,欢迎前往[阿里云SDK问答社区](https://yq.aliyun.com/tags/type_ask-tagid_23350)提问,提问前请阅读[提问引导](https://help.aliyun.com/document_detail/93957.html)。亦可在当前 GitHub [提交 Issues](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new)
1119

12-
完成本文档中的操作开始使用 C++ SDK。
1320

14-
## 前提条件
21+
## 环境要求
1522

1623
在使用 C++ SDK 前,确保您已经:
1724

@@ -28,7 +35,7 @@
2835
* 安装 CMake 3.0 或以上版本
2936
* 建议 4G 或以上内存
3037

31-
## 从源代码构建 SDK
38+
## 安装 C++ SDK (从源代码构建)
3239

3340
1. 从 GitHub 下载或 Git 克隆 [aliyun-openapi-cpp-sdk](https://github.com/aliyun/aliyun-openapi-cpp-sdk)
3441

@@ -110,7 +117,7 @@ msbuild INSTALL.vcxproj
110117

111118
**注意:请以管理员身份运行 Visual Studio,否则无法安装 SDK**
112119

113-
## 如何使用 C++ SDK
120+
## 快速使用
114121

115122
在调用 C++ SDK时,您首先需要配置预处理器定义 ALIBABACLOUD_SHARED 以引用阿里云 C++ SDK 的共享库,然后通过创建 Client 实例提供身份验证,并指定云服务的地域,然后发送API请求。
116123

@@ -234,8 +241,18 @@ int main(int argc, char** argv) {
234241
```
235242
236243
244+
**更多 [例程](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples)**
245+
246+
## 问题
247+
[提交 Issue](https://github.com/aliyun/aliyun-openapi-cpp-sdk/issues/new/choose), 不符合指南的问题可能会立即关闭。
248+
249+
## 发行说明
250+
每个版本的详细更改记录在[发行说明](CHANGELOG)中。
251+
252+
## 贡献
253+
提交 Pull Request 之前请阅读[贡献指南](CONTRIBUTING.md)。
237254
238-
**更多 [例程](https://github.com/aliyun/aliyun-openapi-cpp-sdk/tree/master/examples) 请(参考)[https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/examples/README_zh.md]**
255+
## 许可证
256+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
239257
240-
## 许可协议
241-
请参阅 LICENSE 文件(Apache 2.0 许可证)。
258+
版权所有 1999-2019 阿里巴巴集团

0 commit comments

Comments
 (0)