[英]PHP - Twitter Developer - Getting number of tweets posted from a user
I wanna get the numbers of tweet of a user_id.我想获取 user_id 的推文数量。
I do this:我这样做:
$connection->get('users/show', array('user_id ' => $id));
but the response is:但回应是:
stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => 34
[message] => Sorry, that page does not exist.
)
)
)
Someone can help me?有人可以帮助我吗?
I wanna get the numbers of tweet of a user_id.我想获取一个user_id的推文数量。
I do this:我这样做:
$connection->get('users/show', array('user_id ' => $id));
but the response is:但响应是:
stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => 34
[message] => Sorry, that page does not exist.
)
)
)
Someone can help me?有人可以帮我吗?
Try $connection->get('users/show', array('user_id' => $id));
试试$connection->get('users/show', array('user_id' => $id));
Just remove space in ur key 'user_id'只需删除您的密钥“user_id”中的空格
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.