Latest 0.0.1
Homepage https://github.com/Yuzeyang/GCQiniuUploadManager
License MIT
Platforms ios 7.0
Dependencies Qiniu
Frameworks Foundation
Authors

Introduction

It provide simple interfaces to create token,upload file and upload files

how to use

1.register with your scope, access key and secret key and create token in your AppDelegate.m

[[CJQiniuUploadManager sharedInstance] registerWithScope:CJQiNiuScope
                                                   accessKey:CJQiNiuAccessKey
                                                   secretKey:CJQiNiuSecretKey];
[[CJQiniuUploadManager sharedInstance] createToken];

2.you can upload single data

- (void)uploadData:(NSData *)data
          progress:(UploadProgressHandler)progress
        completion:(UploadDataCompletion)completion;

3.you can also upload multiple data

- (void)uploadDatas:(NSArray<NSData *> *)datas
           progress:(UploadProgressHandler)progress
  oneTaskCompletion:(UploadDataCompletion)oneTaskCompletion
 allTasksCompletion:(UploadAllTasksCompletion)allTasksCompletion;

4.you can set upload token live time´╝îit default is 5 days

@property (nonatomic, assign) NSInteger liveTime;

Latest podspec

{
    "name": "GCQiniuUploadManager",
    "version": "0.0.1",
    "summary": "provide simple interfaces to create token,upload file and upload files.",
    "homepage": "https://github.com/Yuzeyang/GCQiniuUploadManager",
    "license": "MIT",
    "authors": {
        "yuzeyang": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Yuzeyang/GCQiniuUploadManager.git",
        "tag": "0.0.1"
    },
    "source_files": "QiniuUploadManager/GCQiniuUploadManager/*.{h,m}",
    "frameworks": "Foundation",
    "dependencies": {
        "Qiniu": [
            "7.0.18"
        ]
    }
}

Pin It on Pinterest

Share This