Skip to content

Releases: 3lvis/Networking

Networking — 0.8.1

21 Oct 12:21
Compare
Choose a tag to compare
  • Available in all the platforms!

Networking — 0.8.0

08 Oct 13:01
Compare
Choose a tag to compare
  • Logger: Handle generic logging when networking errors happen => #21

Networking — 0.7.0

02 Oct 11:35
Compare
Choose a tag to compare
  • Replaced NSURLConnection with NSSession + data tasks.
  • Added support for synchronous POSTs being run in test environments.

Networking — 0.6.1

01 Oct 21:29
Compare
Choose a tag to compare
  • Fixes an issue where responses from POST would be inferred as NSDictionary instead of AnyObject. This issue was reported by @oromero 🎉

Networking — 0.6.0

30 Sep 08:17
Compare
Choose a tag to compare
  • Add method to construct a URL using a path

Networking — 0.5.1

16 Sep 07:40
Compare
Choose a tag to compare
  • Return completion blocks in main thread

Networking — 0.5.0

07 Sep 10:16
Compare
Choose a tag to compare
  • Added basic POST functionality
  • [REQUIRES XCODE 7] Migrated to Swift 2

Networking — 0.4.0

21 Aug 03:59
Compare
Choose a tag to compare
  • Swift rewrite

Networking — 0.3.0

07 Apr 22:06
Compare
Choose a tag to compare
  • Added support for stubbing GET requests

Interface

+ (void)stubGET:(NSString *)path response:(id)JSON;

How to use

NSArray *stories = @[@{@"id" : @47333,
                       @"title" : @"Site Design: Aquest",
                       @"created_at" : @"2015-04-06T13:16:36Z",
                       @"submitter_display_name" : @"Chris A."}];

[Networking stubGET:@"/stories" response:@{@"stories": stories}];

Networking *networking = [[Networking alloc] initWithBaseURL:@"https://api-news.layervault.com/api/v2"];
[networking GET:@"/stories"
     completion:^(id JSON, NSError *error) {
         // Stories with id: 47333
     }];
}

Networking — 0.2.0

07 Apr 14:10
Compare
Choose a tag to compare
  • Added get endpoint