Latest 0.1.1
Homepage https://github.com/crespoxiao/CPNetworking
License MIT
Platforms ios 8.0
Dependencies AFNetworking, ReactiveCocoa, JSONModel
Frameworks UIKit, Foundation
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS8+

Installation

CPNetwoking is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "CPNetwoking"

Guide

[CFXNetworking requestWithDomain:@"https://itunes.apple.com/"
                         APIName:@"lookup"
                            type:CFXGetRequestType
                          params:^(CFXAPIParams *params) {
                            [params addParamValue:@(507704613) forKey:@"id"];
                          }
                      modelClass:nil
                         success:^(id model, NSDictionary *dic) {
                           NSLog(@"model: %@ ,dic: %@",model,dic);
                         }failed:^(NSError *err) {
                           NSLog(@"%@",err);
                         }takeUntil:[self cfx_httpTakeUntilSignal]];

check the dependency info below. if the version is defferent in the Podfile of your project, just clone this repo and add floder CPNetwoking to you project.

s.dependency 'AFNetworking', '~> 3.1.0'
s.dependency 'ReactiveCocoa', '~> 2.5'
s.dependency 'JSONModel', '~> 1.7.0'

Author

CrespoXiao http://weibo.com/crespoxiao

License

CPNetwoking is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CPNetwoking",
    "version": "0.1.1",
    "summary": "CPNetworking is a HTTP component which encapsulate AFNetworking.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/crespoxiao/CPNetworking",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xiaochengfei": "[email protected]"
    },
    "source": {
        "git": "https://github.com/crespoxiao/CPNetworking.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CPNetwoking/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "dependencies": {
        "AFNetworking": [
            "~> 3.1.0"
        ],
        "ReactiveCocoa": [
            "~> 2.5"
        ],
        "JSONModel": [
            "~> 1.7.0"
        ]
    }
}

Pin It on Pinterest

Share This