Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/286.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.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
Php 如何在TwitterRESTAPI请求中使用tweed_mode=extended?_Php_Json_Api_Twitter - Fatal编程技术网

Php 如何在TwitterRESTAPI请求中使用tweed_mode=extended?

Php 如何在TwitterRESTAPI请求中使用tweed_mode=extended?,php,json,api,twitter,Php,Json,Api,Twitter,我正在构建一个php应用程序并发送以下请求 $data= $mycon->get("/statuses/show/".$id); $data= $mycon->get("/statuses/show/".$id."&tweet_mode=extended") 上述请求适用于最多140个字符的tweet和返回的媒体对象 扩展实体(如果已附加任何实体)。 对于超过140个字符,我正在执行以下请求 $data= $mycon->get("/statuses/show/".

我正在构建一个php应用程序并发送以下请求

$data= $mycon->get("/statuses/show/".$id);
$data= $mycon->get("/statuses/show/".$id."&tweet_mode=extended")
上述请求适用于最多140个字符的tweet和返回的媒体对象 扩展实体(如果已附加任何实体)。 对于超过140个字符,我正在执行以下请求

$data= $mycon->get("/statuses/show/".$id);
$data= $mycon->get("/statuses/show/".$id."&tweet_mode=extended")
但是它的声明页面不存在,如果我使用下面的调用

$data= $mycon->get("/statuses/show/".$id."?tweet_mode=extended")
那么它说不能证明你的身份

// How should external links be opened?
function get_target()
{
// Kindle doesn't support opening in a new window
if (stristr($_SERVER['HTTP_USER_AGENT'], "Kindle/"))
{
    return "_self";
}
else
{
    return "_blank";
}
  }

Source-

很抱歉,我没有找到您。实际上现在我只想返回json数据。140个字符的tweets返回所有连接的媒体,但超过140个字符的tweets不会返回任何内容。它不支持使用
/statuses/show/
[