API Wrappers: Swift

import Foundation let postData = NSData(data: "".dataUsingEncoding(NSUTF8StringEncoding)!) var request = NSMutableURLRequest(URL: NSURL(string: "<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() 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-2019  The Mockingbird Foundation, Inc. | Hosted by End Point Corporation