Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.
/ DZRequest Public archive

DZRequest is a simple wrapper of AFNetworking 3.0

License

Notifications You must be signed in to change notification settings

wenbingzuo/DZRequest

Repository files navigation

DZRequest

DZRequest is a simple wrapper of AFNetworking 3.0.

Installation

CocoaPods

pod "DZRequest", :git => "https://github.com/DaZuo/DZRequest.git"

Manual

Just drop the DZRequest folder to your project.

Usage

GET

	DZBaseRequest *request = [DZBaseRequest new];
	request.url = @"http://api.com/example";
    [request startRequestSuccessCallback:^(__kindof DZBaseRequest *request, id responseObject) {

    } failureCallback:^(__kindof DZBaseRequest *request, NSError *error) {

    }];

POST

	DZBaseRequest *request = [DZBaseRequest new];
	request.url = @"http://api.com/example";
	request.requestMethod = DZRequestMethodPOST;
	request.requestParameters = {@"username":@"HAHA", @"password":@"******"};
    [request startRequestSuccessCallback:^(__kindof DZBaseRequest *request, id responseObject) {

    } failureCallback:^(__kindof DZBaseRequest *request, NSError *error) {

    }];

You can find more usage in the demo project.

中文介绍

About

DZRequest is a simple wrapper of AFNetworking 3.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published