Swift 2.0 环境下使用又拍云HTTP REST API的封装
不依赖于其它第三方库
##编译环境
- iOS 8.0+
- Xcode 7.0 beta 6+
##使用说明
使用SDK:
import UpYunSDK
上传初始化:
let upload: UPYUN = UPYUN(SpaceName: "空间名",
OperatorName: "操作员名", OperatorPasswd: "操作员密码")
上传操作:(可上传多个图片)
upload.uploadImages(images: [UIImage], names: [String], uploadPath: String,
imageCompressionQuality: CGFloat)
上传结果处理:
upload.setNotification(finishAction: (()->Void),errorAction: (()->Void))
下载操作(静态方法):
UPYUN.downloadImage(imageURL: String, imageView: UIImageView?, waitView: UIView?)