Link to home
Start Free TrialLog in
Avatar of vishnu kalakota
vishnu kalakota

asked on

How to retrieve a specified number of recent tweets for a particular user passing username and number of tweets as parameter using php script?

Hi All

I have code to retrieve tweets but producing error
this is my code

$result=file_get_contents('https://api.twitter.com/1.1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=php_net&count=10');
$tweets=json_decode($result);
print_r($tweets);
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vishnu kalakota
vishnu kalakota

ASKER

Thank you