Skip to content

kumangkumeng/GITSRestIOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GITSRest

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod "GITSRest"

Usage

import GITSRest

GITSRest.runRequest(urlRequest: createRequest(), jsonValidation : { json in

    if json["status"].intValue != 200
    {
        return NSError(domain: json["message"].stringValue, code: json["status"].intValue, userInfo: nil)
    }

    return nil
}, callback: { err, json in
    
})

Author

kumangxxx@gits.co.id

License

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