Latest 0.0.1
Homepage https://github.com/SoftBoys/SFBNetwork
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking
Authors

SFBNetwork

SFBNetwork是一款基于AFNetworking的网络库,以block方式调用,支持队列组请求

版本

  • 最新版本 v0.0.1

安装

使用CocoaPods

pod 'SFBNetwork'

手动导入

  • SFBNetwork文件夹拖拽到项目中
  • 引入头文件 #import "NSObject+SFBRequest.h"

使用方法

NSString *url = @"http://116.211.167.106/api/live/aggregation";
NSDictionary *param = @{@"uid":@"133825214",
                        @"interest":@"1",
                        @"count":@(20)};

self.CANCEL(url);
[self.GET(url).PARAM(param) SEND:^(BT_BaseResponse *response) {
    if (response.statusCode == 200) {
        NSLog(@"wancheng");
    }
}];

证书

SFBNetwork基于 MIT证书协议

Latest podspec

{
    "name": "SFBNetwork",
    "version": "0.0.1",
    "summary": "A network framework based on AFNetworking.",
    "homepage": "https://github.com/SoftBoys/SFBNetwork",
    "source": {
        "git": "https://github.com/SoftBoys/SFBNetwork.git",
        "tag": "0.0.1"
    },
    "license": "MIT",
    "authors": {
        "SoftBoys": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SFBNetwork",
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 3.1.0"
        ]
    }
}

Pin It on Pinterest

Share This