如何提供唯一id以获取与CricAPI匹配的详细信息?

时间:2021-01-03 16:48:56

I am working with CricAPI to get list of upcoming matches.

我正在与CricAPI合作以获得即将到来的比赛名单。

NSURL *url = [[NSURL alloc] initWithString:@"http://cricapi.com/api/matches/?apikey=Gxxxxxxxxxxxxxxxxxxxx2"];
NSMutableURLRequest *request = [[NSURLRequest alloc] initWithURL:url ];

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
manager.requestSerializer = [AFJSONRequestSerializer serializer];
[manager GET:[url absoluteString]
  parameters:nil
     success:^(NSURLSessionDataTask *task, id JSON)

Its working fine, providing JSON output.

它的工作很好,提供了JSON输出。

How can I get the score details of a particular match ? It says you have to provide "unique_id" of the match, I am not sure where to use it ?

我如何获得某一场比赛的分数细节?它说您必须提供匹配的“unique_id”,我不确定在哪里使用它?

1 个解决方案

#1


0  

You have to click on new match API or OLD match API from there you will get unique id of that match which you can use for your next query

您必须单击新的匹配API或旧的匹配API,您将获得该匹配的惟一id,您可以使用它来进行下一个查询。

#1


0  

You have to click on new match API or OLD match API from there you will get unique id of that match which you can use for your next query

您必须单击新的匹配API或旧的匹配API,您将获得该匹配的惟一id,您可以使用它来进行下一个查询。