I'm using the sample iOS app and am getting this error: ENAPIRequest: unexpected connectionShouldUseCredentialStorage
I'm trying to retrieve songs by Gary Moore that are in the musical key of A, hence the 9 for that musical key.
Here is the key part of my code:
(IBAction)testGETButtonAction:(id)sender {
NSMutableDictionary *parameters = [NSMutableDictionary new]; [parameters setValue:@"api_key" forKey:@"KSLEJSLDRABIEKSND"]; [parameters setValue:@"9" forKey:@"key"]; [parameters setValue:@"gary moore" forKey:@"artist"];
[ENAPIRequest GETWithEndpoint:@"song/search" andParameters:parameters andCompletionBlock:^(ENAPIRequest *request) { songs = [request.response valueForKeyPath:@"response.songs"]; }];
NSLog(@"songs = %@", songs); }
Is the above code correct?
What is the meaning of the error message?
Is it okay to set my api_key here for the moment, just to test?
Thank you very much