Erhalten des Status "REQUEST_DENIED" nach dem Abrufen von Daten von der Google Places-API
ich habe das gemacht
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://maps.googleapis.com/maps/api/place/search/json?location=30.722322,76.76126&radius=500&types=food&sensor=true&key=any_apiKey"]];
NSURLResponse *response;
NSError *error;
NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSString *strResponse = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
NSLog(@"%@",strResponse);
SBJSON *sbJason = [[SBJSON alloc] init];
NSMutableDictionary *getPlaceList = [sbJason objectWithString:strResponse];
// Aber ich verstehe das-
{
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
** Gibt es ein Problem mit dem API-Schlüssel? Ich habe einen API-Schlüssel von Google Map geschrieben. Gibt es ein Problem mit dem API-Schlüssel oder was bitte sagen Sie mir, hier ist daslink von google api