Skip to content

CPNetworking is a HTTP component which encapsulate AFNetworking.

License

Notifications You must be signed in to change notification settings

crespoxiao/CPNetworking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPNetwoking

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.

About

CPNetworking is a HTTP component which encapsulate AFNetworking.

Resources

License

Stars

Watchers

Forks

Packages

No packages published