Uzyskanie statusu „REQUEST_DENIED” po pobraniu danych z Google umieszcza API
Zrobiłem to
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];
// Ale dostaję to-
{
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
** Czy jest jakiś problem z kluczem API napisałem klucz API podany przez mapę google. Czy jest jakiś problem z kluczem api lub proszę mi powiedzieć tutajlink do Google api