我正在尝试使用此处描述的Social Mention RESTful API示例 http://code.google.com/p/socialmention-api/wiki/APIDocumentation
只需在我的Drupal 7模块中使用以下行:
$response = drupal_http_request('http://socialmention.com/search?q=iphone+apps&f=json&t=microblogs&lang=fr');
然后请求超时。 我尝试了各种选项,但似乎无法从此API获得响应。 任何指针都非常感谢。谢谢!
答案 0 :(得分:0)
刚刚结束使用file_get_contents()并且它可以工作。仍然不确定为什么drupal_http_request()失败了。