Work in progress. If you want, please use it just for fun
To run the example project, clone the repo, and run pod install
from the Example directory first.
Request list of articles. You can specify query fields and filters:
AFZRequestArticlesList *articleListRequest = [AFZRequestArticlesList new];
articleListRequest.filterByActivationDate = @[kAFZArticleActivationDateThisWeek, kAFZArticleActivationDateLastWeek];
articleListRequest.queryFields = @[@"name"];
[articleListRequest performRequestWithCompletion:^(id _Nullable result, NSError * _Nullable error) {
}];
Request article by ID
NSString *exampleArticleID = @"BE824G002-C11";
AFZRequestArticleById *articleRequest = [[AFZRequestArticleById alloc] initWithArticleId:exampleArticleID];
[articleRequest performRequestWithCompletion:^(id _Nullable result, NSError * _Nullable error) {
}];
Request related information such as reviews and media
NSString *exampleArticleID = @"BE824G002-C11";
AFZRequestArticleById *articleRequest = [[AFZRequestArticleById alloc] initWithArticleId:exampleArticleID];
[[articleRequest requestRelatedReviews] performRequestWithCompletion:^(id _Nullable result, NSError * _Nullable error) {
}];
[[articleRequest requestRelatedMedia] performRequestWithCompletion:^(id _Nullable result, NSError * _Nullable error) {
}];
Cancel requests when needed
[[[AFZApiClient defaultApi] requestScheduler] cancelRequest:articleRequest];
// or
[[[AFZApiClient defaultApi] requestScheduler] cancelAllRequests];
AFZalandoSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AFZalandoSDK"
Alexander Fedosov, [email protected]
AFZalandoSDK is available under the MIT license. See the LICENSE file for more info.