Phish.net API Wrappers: Swift

import Foundation let postData = NSData(data: "".dataUsingEncoding(NSUTF8StringEncoding)!) var request = NSMutableURLRequest(URL: NSURL(string: "https://api.phish.net/v3/setlists/latest?apikey=<APIKEY>")!, cachePolicy: .UseProtocolCachePolicy, timeoutInterval: 10.0) request.HTTPMethod = "GET" request.HTTPBody = postData let session = NSURLSession.sharedSession() let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in if (error != nil) { println(error) } else { let httpResponse = response as? NSHTTPURLResponse println(httpResponse) } }) dataTask.resume()
Phish.net Login

Register | Forgot Password
Support Phish.net & MBIRD


Phish.net

Phish.net is a non-commercial project run by Phish fans and for Phish fans under the auspices of the all-volunteer, non-profit Mockingbird Foundation.

This project serves to compile, preserve, and protect encyclopedic information about Phish and their music.

Credits | Terms Of Use | Legal

© 1990-2017  The Mockingbird Foundation, Inc. | Hosted by End Point Corporation