Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用unirest的restfulapi_Ios_Iphone_Objective C_Httprequest - Fatal编程技术网

Ios 使用unirest的restfulapi

Ios 使用unirest的restfulapi,ios,iphone,objective-c,httprequest,Ios,Iphone,Objective C,Httprequest,我正在尝试使用restful api获取数据,但是我得到了一个错误,尽管我遵循了安装指南。我在mashape中的代码如下所示: NSDictionary* headers = @{@"X-Mashape-Authorization": @"key"}; NSDictionary* parameters = @{}; HttpJsonResponse* response = [[UNIRest get:^(UNISimpleRequest* request) { [request set

我正在尝试使用restful api获取数据,但是我得到了一个错误,尽管我遵循了安装指南。我在mashape中的代码如下所示:

NSDictionary* headers = @{@"X-Mashape-Authorization": @"key"};
NSDictionary* parameters = @{};

HttpJsonResponse* response = [[UNIRest get:^(UNISimpleRequest* request) {
    [request setUrl:@"https://willjw-statsfc-competitions.p.mashape.com/live.json?key=free&competition=premier-league&team=everton&group=A&timezone=Europe%2FLondon"];

    [request setHeaders:headers];
    [request setParameters:parameters];
}] asJson];
我得到一个错误:

User of undeclared identifier HttpJsonResponse
Use of undeclared identifier response

我已经上载了所有unirest文件并将unirest.h导入到ViewController中

出现错误是什么意思?这意味着英语不是我的第一语言,我在底部列出了两个错误。请检查库文件HttpJsonResponse是否在Xcode的“编译源文件”面板中正确导入项目