Latest 0.1.0
Homepage https://github.com/lywsbcn/Jpost
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Use

基于 AFNetworking 的封装

普通的post请求

+(void)postWithUrl:(NSString *)url
          AndParam:(id)param
           success:(void (^)(id response))success
              fail:(void (^)(NSError * error))fail;

可选择GET/POST发送请求


+(void)requestUrl:(NSString *)url
        AndMethod:(NSString *)method
         AndParam:(id)param
          success:(void(^)(id response))success
             fail:(void(^)(NSError * error))fail;

NSDictionary 转字符串post请求

+(void)postWithUrl:(NSString *)url
     AndJsonObject:(id)jsonObject
           success:(void (^)(id response))success
              fail:(void (^)(NSError * error))fail;

json 字符串post请求

+(void)postWithUrl:(NSString *)url
           AndJson:(NSString*)json
           success:(void(^)(id response))success
              fail:(void(^)(NSError*error))fail;

文件上传

+(void)uploadFileWithUrl:(NSString*)url
                   param:(id)param
                   files:(NSArray*)files
           successHander:(void (^)(id response))success
              failHander:(void (^)(NSError * error))fail
                 progess:(void(^)(NSProgress * uploadProgress))progess;

Requirements

Installation

Jpost is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Jpost'

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

lywsbcn, [email protected]

License

Jpost is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Jpost",
    "version": "0.1.0",
    "summary": "A short description of Jpost.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/lywsbcn/Jpost",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lywsbcn": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lywsbcn/Jpost.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Jpost/Classes/**/*"
}

Pin It on Pinterest

Share This