Skip to content

ashbhat/swift-ezJson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

swift-ezJson

Simple HTTP Requests (GET, POST, etc) in swift

Drag ezJson.swift into your project

Post Request

        ezJson().postRequest(myUrl: "http://ezjson.herokuapp.com/ezJSON", params: ["key" : "value"]){ (returnedObject : AnyObject?, error : NSError?) in
            if (returnedObject != nil){
                print("\(returnedObject)")
            }
        }

Get Request

        ezJson().getRequest(myUrl: "http://ezjson.herokuapp.com/ezJSON/test") { (returnedObject : AnyObject?, error : NSError?) in
            if (returnedObject != nil){
                 print("\(returnedObject)")
            }
        }

About

Simple HTTP Requests (GET, POST, etc) in swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages