API からデータをフェッチしようとしていますが、次のコードがあります。
// create the URL we'd like to query
NSString *urlString = [NSString stringWithFormat:@"https://www.googleapis.com/adsense/v1.1/reports"];
NSString *token = auth.accessToken;
NSMutableURLRequest *myURL = [NSURL URLWithString:urlString];
[myURL addValue:token forHTTPHeaderField:@"Authentication"];
// we'll receive raw data so we'll create an NSData Object with it
@@@@@@
How would I complete this step? So far I have
NSData *myData =
@@@@@@
// now we'll parse our data using NSJSONSerialization
id myJSON = [NSJSONSerialization JSONObjectWithData:myData options:NSJSONReadingMutableContainers error:nil];
// typecast an array and list its contents
NSArray *jsonArray = (NSArray *)myJSON;
NSLog(@"%@", jsonArray);
9 行目に接続するにはどうすればよいですか?