本文主要面向新浪云存储服务的开发者,开发者可通过此文学习如何使用新浪云存储进行开发
API域名列表:
| 域名 | 功能 | |
|---|---|---|
| sinacloud.net | 上传、下载、全部的接口调用 | 首选 |
| cdn.sinacloud.net | cdn下载加速,只用于下载 | 下载 |
| up.sinacloud.net | cdn上传加速,只用于上传 | 上传 |
| imgx.sinacloud.net | 只用于图片处理(带CDN) | 图片处理 |
流程如下:
使用说明:
my-bucket,您要绑定的域名为:file.foo.comhttp://file.foo.com/path/to/file,等同于:http://my-bucket.sinacloud.net/path/to/file或者http://sinacloud.net/my-bucket/path/to/file注意:如果使用域名访问,并且需要签名认证,此时签名中的CanonicalizedResource为:/file.foo.com/path/to/file( 即:签名时使用file.foo.com作为bucket名称 )