List of usage examples for twitter4j AsyncTwitter createFavorite
void createFavorite(long id);
From source file:com.marpies.ane.twitter.functions.LikeStatusFunction.java
License:Apache License
@Override public FREObject call(FREContext context, FREObject[] args) { super.call(context, args); long statusID = Long.valueOf(FREObjectUtils.getString(args[0])); mCallbackID = FREObjectUtils.getInt(args[1]); AsyncTwitter twitter = TwitterAPI.getAsyncInstance(TwitterAPI.getAccessToken()); twitter.addListener(this); twitter.createFavorite(statusID); return null;//from ww w .j a v a2 s . c o m }