Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


How do I get started?

  1. Download BANetworking and try out the included Mac and iPhone example apps
  2. Check out the documentation for a comprehensive look at all of the APIs available in BANetworking

BANetworking uses ARC and is based on NSURLSession, which means it supports iOS 7.0 and above and Mac OS X 10.9 and above.

If you need a hand, you can contact us by e-mail.

Using BANetworking

1. Set up request logs

[BANetworking setDebugEnabled:YES];

2. Creating a Download Task

BARequest *request = [BARequest GETRequestWithURL:[NSURL URLWithString:@""] parameters:nil];
[[[[BAClient currentClient] performRequest:request] onComplete:^(BAResponse *result, NSError *error) {
}] onProgress:^(float progress) {
  NSLog(@"download progress = %f",progress);

3. Creating an Upload Task

BARequest *request = [BARequest POSTRequestWithPath:path parameters:nil];
request.contentType = BARequestContentTypeMultipart;
request.fileData = [BARequestFileData fileDataWithData:data name:fileName fileName:[NSString stringWithFormat:@“%@.png",fileName]];
[[[BAClient currentClient] performRequest:request] onComplete:^(id result, NSError *error) {
    if (error) {
        NSLog(@"file upload error");
    } else {
        NSLog(@"file upload succeed");

Adding to your project

If you are using CocoaPods, then, just add this line to your Podfile

pod 'BANetworking', '~> 1.0.1'


You can find a getting started guide and full documentation over at the BANetworking.


BANetworking is released under the MIT license.

You can’t perform that action at this time.