Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SunRunAway committed Jul 4, 2013
1 parent 9af29d9 commit 8a0b007
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/README.gist.md
Expand Up @@ -21,6 +21,7 @@ SDK 下载地址:<https://github.com/qiniu/python-sdk/tags>
- [上传策略](#io-put-policy)
- [上传凭证](#upload-token)
- [PutExtra](#put-extra)
- [上传文件](#upload-do)
- [断点续上传、分块并行上传](#resumable-io-put)
- [下载文件](#io-get)
- [下载公有文件](#io-get-public)
Expand All @@ -43,6 +44,8 @@ SDK 下载地址:<https://github.com/qiniu/python-sdk/tags>
- [查看图像属性](#fop-image-info)
- [查看图片EXIF信息](#fop-exif)
- [生成图片预览](#fop-image-view)
- [贡献代码](#contribution)
- [许可证](#license)

<a name="overview"></a>

Expand Down Expand Up @@ -169,7 +172,7 @@ Python-SDK可以使用`pip`或`easy_install`从PyPI服务器上安装,但不

<a name="upload-token"></a>

##### 生成上传凭证
##### 上传凭证

服务端生成 [uptoken](http://docs.qiniu.com/api/put.html#uploadToken) 代码如下:

Expand Down Expand Up @@ -251,11 +254,11 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="io-get"></a>

#### 下载文件
### 下载文件

<a name="io-get-public"></a>

##### 下载公有文件
#### 下载公有文件

每个 bucket 都会绑定一个或多个域名(domain)。如果这个 bucket 是公开的,那么该 bucket 中的所有文件可以通过一个公开的下载 url 可以访问到:

Expand All @@ -265,7 +268,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="io-get-private"></a>

##### 下载私有文件
#### 下载私有文件

如果某个 bucket 是私有的,那么这个 bucket 中的所有文件只能通过一个的临时有效的 downloadUrl 访问:

Expand All @@ -287,7 +290,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="resumable-io-get"></a>

##### 断点续下载
#### 断点续下载

无论是公有资源还是私有资源,获得的下载 url 支持标准的 HTTP 断点续传协议。考虑到多数语言都有相应的断点续下载支持的成熟方法,七牛 C-SDK 并不提供断点续下载相关代码。

Expand Down Expand Up @@ -455,7 +458,7 @@ ret是一个字典,含有`hash`,`key`等信息。
@gist(demo.py#image_view)
```


<a name="contribution"></a>
## 贡献代码

+ Fork
Expand All @@ -464,11 +467,12 @@ ret是一个字典,含有`hash`,`key`等信息。
+ 将您的修改记录提交到远程 git 仓库 (git push origin my-new-feature)
+ 然后到 github 网站的该 git 远程仓库的 my-new-feature 分支下发起 Pull Request

<a name="license"></a>
## 许可证

> Copyright (c) 2013 qiniu.com
## 基于 MIT 协议发布:
基于 MIT 协议发布:

> [www.opensource.org/licenses/MIT](http://www.opensource.org/licenses/MIT)

0 comments on commit 8a0b007

Please sign in to comment.