Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.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
Drupal7和社交API_Drupal_Rest_Drupal 7 - Fatal编程技术网

Drupal7和社交API

Drupal7和社交API,drupal,rest,drupal-7,Drupal,Rest,Drupal 7,我试图使用这里描述的示例RESTful API 只需在我的Drupal 7模块中使用以下行: $response = drupal_http_request('http://socialmention.com/search?q=iphone+apps&f=json&t=microblogs&lang=fr'); 然后请求超时。 我尝试了多种选择,但似乎无法从该API获得响应。 非常感谢您的指点。谢谢 刚刚使用了file\u get\u contents()并成功了。但

我试图使用这里描述的示例RESTful API

只需在我的Drupal 7模块中使用以下行:

$response = drupal_http_request('http://socialmention.com/search?q=iphone+apps&f=json&t=microblogs&lang=fr');
然后请求超时。 我尝试了多种选择,但似乎无法从该API获得响应。
非常感谢您的指点。谢谢

刚刚使用了file\u get\u contents()并成功了。但仍然不确定drupal_http_request()为何失败