0
我不知道一切是如何获得的Twitter帐户的配置文件的化身:/ 即使看DOC这里: https://dev.twitter.com/rest/reference/post/account/update_profile_image 如果一个善良的人能帮助我。 这里是没有阶级API的Twitter帐户1.1/update_profile_image
if(isset($_GET['name']))
{
$name= htmlentities($_GET['name']);
}
$cache = 'cache/tweets.tmp';
if(time() - filemtime($cache) > 60){
require 'class/twitteroauth.php';
$connection = new TwitterOAuth('***','****', '**-**', '****');
$pics = $connection->post('account/update_profile_image','//screen_name => HERE...$name....');
//var_dump($pics);
file_put_contents($cache, serialize($pics));
}else{
echo 'Cache utilisé';
$pics = unserialize(file_get_contents($cache));
}
感谢它现在的工作;) – Boom 2014-10-02 07:47:28