Hello, could anybody help me to figure out what I am missing. I am using the following code >>NSString *requestString = [NSString stringWithFormat:@“http://username:apiKey@flightxml.flightaware.com/json/FlightXML2/Enroute?airport=ORD&filter=‘’&howMany=100&SetMaximumResultSize?max_size=60”];
NSURLSessionConfiguration *config = [NSURLSessionConfiguration ephemeralSessionConfiguration];
config.HTTPAdditionalHeaders = @{ @“Accept”:@“application/json”};
NSURLSession *urlSession = [NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:nil];
Good to hear that you’ve got it working, but I’d like to just mention that your prior link seems to have multiple question marks in it and seems to incorrectly combine an “Enroute” request with a “SetMaximumResultSize” request in a single URL. They need to be issued as separate requests, such as this once:
Also try to use 4-letter (ICAO) airport codes when possible (KORD vs ORD). We sometimes are able to automatically convert such inputs, but it cannot be reliably done in all cases.