Drupal7和社交API
我试图使用这里描述的示例RESTful API 只需在我的Drupal 7模块中使用以下行: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()并成功了。但
$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()为何失败