Twitter API使用php [关闭]

How is twitter API's called using php ? If input is to provide a username can PHP be used to retrieve the user picture and the re tweet his status,along with their user pictures.

Please try this class , OAuth Twitter: Access Twitter API on behalf of an user

http://www.phpclasses.org/package/5941-PHP-Access-Twitter-API-on-behalf-of-an-user.html

This class can be used to access the Twitter API on behalf of an user using OAuth.

It uses the Zend Framework OAuth consumer package to generate a token for accessing the Twitter API on behalf of the current site user.

The class redirects to use to the Twitter site to verify the user permission and handles the request to receive the validated OAuth token.

From then on, the class can access the Twitter API using the OAuth token to perform several types of actions like: updating the user status, get the user followers and friends.

To Get user picture try this,

https://dev.twitter.com/docs/user-profile-images-and-banners