{"id":21885126,"url":"https://github.com/qiudaniel/qddownloader","last_synced_at":"2025-03-22T01:40:58.084Z","repository":{"id":62451360,"uuid":"133440610","full_name":"QiuDaniel/QDDownloader","owner":"QiuDaniel","description":"Downloader depend on AFNetworking","archived":false,"fork":false,"pushed_at":"2020-01-03T08:33:46.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-05T11:58:38.750Z","etag":null,"topics":["afnetworking","download"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QiuDaniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-15T01:14:51.000Z","updated_at":"2020-01-03T08:33:08.000Z","dependencies_parsed_at":"2022-11-01T22:46:18.262Z","dependency_job_id":null,"html_url":"https://github.com/QiuDaniel/QDDownloader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QiuDaniel%2FQDDownloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QiuDaniel%2FQDDownloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QiuDaniel%2FQDDownloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QiuDaniel%2FQDDownloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QiuDaniel","download_url":"https://codeload.github.com/QiuDaniel/QDDownloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244894308,"owners_count":20527669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["afnetworking","download"],"created_at":"2024-11-28T10:19:46.023Z","updated_at":"2025-03-22T01:40:58.066Z","avatar_url":"https://github.com/QiuDaniel.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QDDownloader\nDownloader depend on AFNetworking\n\n## Installation\n\n### CocoaPods\n\nThe preferred installation method is with [CocoaPods](http://cocoapods.org). Add the following to your Podfile:\n```ruby\npod 'QDDownloader', '~\u003e 0.1.2'\n```\n## Usage\n\n### Creating an Download Task\n```objective-c\nNSUInteger taskId = [[QDDownloadManager manager] downloadWithUrl:downloadUrl progress:^(int64_t completedUnitCount, int64_t totalUnitCount) {\n    dispatch_async(dispatch_get_main_queue(), ^{\n        NSLog(@\"prgress:%f\", completedUnitCount / 1.0 / totalUnitCount);\n    });\n} didFinished:^(QDDidFinishedStatus status, NSString *filePath) {\n    if (status == QDDidFinishedStatusSuceess) {\n        NSLog(@\"download success\");\n    } else {\n        NSLog(@\"download fail\");\n    }\n}];\n```\n### Cancel Downloading Task\n```objective-c\n[[QDDownloadManager manager] cancelTask:taskId];\n```\n## License\n\nQDDownloader is released under the MIT license. See [LICENSE](https://github.com/QiuDaniel/QDDownloader/blob/master/LICENSE) for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiudaniel%2Fqddownloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqiudaniel%2Fqddownloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqiudaniel%2Fqddownloader/lists"}