{"id":22015902,"url":"https://github.com/pircate/yyurlrequest","last_synced_at":"2025-03-23T09:14:37.681Z","repository":{"id":56930065,"uuid":"130174834","full_name":"Pircate/YYURLRequest","owner":"Pircate","description":"A Objective-C network library based on AFNetworking/YYModel/YYCache.","archived":false,"fork":false,"pushed_at":"2018-10-18T02:50:35.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-09-17T16:09:37.994Z","etag":null,"topics":["network","yycache","yymodel"],"latest_commit_sha":null,"homepage":"","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/Pircate.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-04-19T07:20:42.000Z","updated_at":"2018-10-18T02:50:37.000Z","dependencies_parsed_at":"2022-08-20T23:20:06.791Z","dependency_job_id":null,"html_url":"https://github.com/Pircate/YYURLRequest","commit_stats":null,"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FYYURLRequest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FYYURLRequest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FYYURLRequest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FYYURLRequest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pircate","download_url":"https://codeload.github.com/Pircate/YYURLRequest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078198,"owners_count":20557282,"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":["network","yycache","yymodel"],"created_at":"2024-11-30T04:29:54.695Z","updated_at":"2025-03-23T09:14:37.649Z","avatar_url":"https://github.com/Pircate.png","language":"Objective-C","readme":"# YYURLRequest\n\n[![CI Status](http://img.shields.io/travis/Pircate/YYURLRequest.svg?style=flat)](https://travis-ci.org/Pircate/YYURLRequest)\n[![Version](https://img.shields.io/cocoapods/v/YYURLRequest.svg?style=flat)](http://cocoapods.org/pods/YYURLRequest)\n[![License](https://img.shields.io/cocoapods/l/YYURLRequest.svg?style=flat)](http://cocoapods.org/pods/YYURLRequest)\n[![Platform](https://img.shields.io/cocoapods/p/YYURLRequest.svg?style=flat)](http://cocoapods.org/pods/YYURLRequest)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nYYURLRequest is available through [CocoaPods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage). To install\nit, simply add the following line to your Podfile or Cartfile:\n\n### CocoaPods\n\n```ruby\npod 'YYURLRequest'\n```\n\n### Carthage\n```ruby\ngithub \"Pircate/YYURLRequest\"\n```\n\n## Usage\n\n### Import\n\n``` objc\n#import \u003cYYURLRequest/YYURLRequest.h\u003e\n```\n\n### Request with cache\n\n``` objc\nYYURLRequest *request = [YYURLRequest requestWithBaseURL:[NSURL URLWithString:@\"\"] path:@\"\" parameters:@{}];\nrequest.cache(^(id response) {\n        \n}).then(^(id response) {\n        \n}).catch(^(NSError *error) {\n        \n});\n```\n\n### Request without cache\n\n``` objc\nrequest.then(^(id response) {\n        \n}).catch(^(NSError *error) {\n        \n});\n```\n\n## Author\n\nPircate, gao497868860@163.com\n\n## License\n\nYYURLRequest is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpircate%2Fyyurlrequest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpircate%2Fyyurlrequest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpircate%2Fyyurlrequest/lists"}