Example usage for twitter4j AsyncTwitter retweetStatus

List of usage examples for twitter4j AsyncTwitter retweetStatus

Introduction

In this page you can find the example usage for twitter4j AsyncTwitter retweetStatus.

Prototype

void retweetStatus(long statusId);

Source Link

Document

Retweets a tweet.

Usage

From source file:com.marpies.ane.twitter.functions.RetweetStatusFunction.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.retweetStatus(statusID);

    return null;// w  w  w . j  a v a  2 s .  c  om
}