我使用 twitter user_timeline api 来提取推文,在那里我找到了一个属性名称 text
,我可以获取 html 格式的推文,以便我的超链接可以开始在我的循环中显示。
我正在使用TwitterAPIExchange.php
php 库
$url = 'https://api.twitter.com/1.1/statuses/user_timeline.json';
$getfield = '?username=arpia';
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
$tw=$twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest();
我如何显示链接#tags
上传的图像和其他html entities