Example usage for twitter4j AsyncTwitter destroyStatus

List of usage examples for twitter4j AsyncTwitter destroyStatus

Introduction

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

Prototype

void destroyStatus(long statusId);

Source Link

Document

Destroys the status specified by the required ID parameter.
Usage note: The authenticating user must be the author of the specified status.

Usage

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

    return null;/* w w  w . j  ava  2 s  .c o m*/
}