0

にカスタムテーブルがあり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ん。

4

0 に答える 0