Skip to content

一款采用链式编获取请求的网络框架

License

Notifications You must be signed in to change notification settings

SoftBoys/BTNetwok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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证书协议

About

一款采用链式编获取请求的网络框架

Resources

License

Stars

Watchers

Forks

Packages

No packages published