にカスタムテーブルがありQuickBlox
、そのテーブルのデータを取得したい
NSURL *topPlaceURL = [NSURL URLWithString:@"https://api.quickblox.com/data/TopChatPoints.json"];
NSURLRequest * jsonRequest = [NSURLRequest requestWithURL:topPlaceURL];
[[NSURLConnection alloc]initWithRequest:jsonRequest delegate:self];
-(void) connection: (NSURLConnection *) connection didReceiveResponse:(NSURLResponse *)response
{
jsonData = [[NSMutableData alloc]init];
}
-(void) connection: (NSURLConnection *) connection didReceiveData:(NSData *)data
{
[jsonData appendData:data];
}
-(void) connectionDidFinishLoading: (NSURLConnection *) connection
{
jsonArray = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:nil];
NSLog(@"MY TOP PLACE = %@",jsonArray);
}
auth key
しかし、データを生成auth key
して送信する方法を渡していないため、データを取得できませNSURLRequest
ん。