Android update profile banner using twitter api -
i using twitter4j updating profile image. here code:
twitter twitter = new twitterfactory(builder.build()) .getinstance(accesstoken); file image = new file( environment .getexternalstoragepublicdirectory(environment.directory_pictures), "img.jpg"); twitter.updateprofileimage(image);
besides need update twitter profile banner. founded in java docs library twitter4j has method updateprofilebanner(java.io.file image)
. can't find in code. know how this?
it should there, twitter interface extends usersresources interface:
http://twitter4j.org/javadoc/twitter4j/api/usersresources.html#updateprofilebanner%28java.io.file%29
are sure using recent version of twitter4j? there in version 3.0.3.
android twitter
No comments:
Post a Comment