{"id":15832271,"url":"https://github.com/cmckni3/afnetworking-promisekit","last_synced_at":"2025-04-01T12:10:44.924Z","repository":{"id":33061596,"uuid":"36698119","full_name":"cmckni3/AFNetworking-PromiseKit","owner":"cmckni3","description":"AFNetworking category for PromiseKit","archived":false,"fork":false,"pushed_at":"2016-02-16T16:44:53.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T12:41:57.279Z","etag":null,"topics":["afnetworking","ios","promisekit"],"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/cmckni3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-02T00:47:35.000Z","updated_at":"2019-07-16T07:22:37.000Z","dependencies_parsed_at":"2022-08-17T19:00:58.462Z","dependency_job_id":null,"html_url":"https://github.com/cmckni3/AFNetworking-PromiseKit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2FAFNetworking-PromiseKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2FAFNetworking-PromiseKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2FAFNetworking-PromiseKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmckni3%2FAFNetworking-PromiseKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmckni3","download_url":"https://codeload.github.com/cmckni3/AFNetworking-PromiseKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635983,"owners_count":20809333,"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","ios","promisekit"],"created_at":"2024-10-05T12:41:34.468Z","updated_at":"2025-04-01T12:10:44.900Z","avatar_url":"https://github.com/cmckni3.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AFNetworking-PromiseKit\n[![Version](https://img.shields.io/cocoapods/v/AFNetworking-PromiseKit.svg?style=flat)](http://cocoapods.org/pods/AFNetworking-PromiseKit)\n[![License](https://img.shields.io/cocoapods/l/AFNetworking-PromiseKit.svg?style=flat)](http://cocoapods.org/pods/AFNetworking-PromiseKit)\n[![Platform](https://img.shields.io/cocoapods/p/AFNetworking-PromiseKit.svg?style=flat)](http://cocoapods.org/pods/AFNetworking-PromiseKit)\n\nWrapper for the AFHTTPRequestOperation class to return a PromiseKit promise.\n\nPromises clean up the structure of code and provide better data flow\nand error handling especially when using asynchronous methods.\n\n## Requirements\n* [AFNetworking 1.x](https://github.com/AFNetworking/AFNetworking)\n* [PromiseKit 1.x](https://github.com/mxcl/PromiseKit)\n\n\n### Supported Platforms\n* iOS 6.0+\n* OS X 10.7+\n\n## Installation\n\n### Install via [CocoaPods](https://github.com/cocoapods/cocoapods)\n\n* Add the library to `Podfile`\n  ```ruby\n  platform :ios, '6.0'\n\n  pod 'AFNetworking-PromiseKit'\n  ```\n\n* Install pod\n   ```bash\n   pod install\n   ```\n\n### Manual\n\n* Drop `AFHTTPRequestOperation+PromiseKit.h`, `AFHTTPRequestOperation+PromiseKit.m`,\nand `AFNetworking-PromiseKit.h` into an Xcode project with AFNetworking\nand set the appropriate targets.\n\n## Usage\n\n### Import the category\n\n* Manual install\n  ```objective-c\n  #import \"AFNetworking-PromiseKit.h\"\n  ```\n\n* CocoaPods install\n  ```objective-c\n  #import \u003cAFNetworking-PromiseKit/AFNetworking-PromiseKit.h\u003e\n  ```\n\n### Call a typical `AFHTTPRequestOperation` operation class method and use the resulting promise.\n  ```objective-c\n  NSMutableURLRequest *request = [[AFClient sharedClient] requestWithMethod:@\"GET\" path:@\"/test.json\" parameters:nil];\n\n  [AFJSONRequestOperation promise:request].then(^(AFHTTPRequestOperation *operation, id JSON){\n    NSLog(@\"Received: %@\", JSON);\n  }).catch(^(NSError *error){\n    NSLog(@\"Received an error: %@\", error);\n  });\n  ```\n\n## License\n\n[AFNetworking-PromiseKit](https://github.com/cmckni3/AFNetworking-PromiseKit) is licensed under the MIT license. Please see the [license](MIT-LICENSE) for more information.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmckni3%2Fafnetworking-promisekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmckni3%2Fafnetworking-promisekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmckni3%2Fafnetworking-promisekit/lists"}