Latest | 1.1.0 |
---|---|
Homepage | https://github.com/SoftBoys/BTNetwok |
License | MIT |
Platforms | ios 8.0, requires ARC |
Dependencies | AFNetworking |
Authors |
BTNetwork
BTNetwork
是一款基于AFNetworking
的网络库,以block
方式调用,支持队列组请求
版本
- 最新版本
v1.0.8
安装
使用CocoaPods
pod 'BTNetwork'
手动导入
- 将
BTNetwork
文件夹拖拽到项目中 - 引入头文件
#import "NSObject+BTRequest.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");
}
}];
证书
BTNetwork
基于 MIT
证书协议
Latest podspec
{ "name": "BTNetwork", "version": "1.1.0", "summary": "u4e00u6b3eu57fau4e8eAFNetworkingu7684u4ee5blocku8c03u7528u5f62u5f0fu7684u7f51u7edcu8bf7u6c42u6846u67b6", "homepage": "https://github.com/SoftBoys/BTNetwok", "source": { "git": "https://github.com/SoftBoys/BTNetwok.git", "tag": "1.1.0" }, "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "gjw": "[email protected]" }, "platforms": { "ios": "8.0" }, "source_files": "BTNetwork/*.{h,m}", "requires_arc": true, "dependencies": { "AFNetworking": [ "~> 3.1.0" ] } }
Fri, 20 Apr 2018 00:20:04 +0000