System.out.println("Usage: java Weibo4j.examples.DirectMessage senderID senderPassword recipientId message");
System.exit( -1);
}
Weibo weibo = new Weibo(args[0], args[1]);
try {
DirectMessage message = weibo.sendDirectMessage(args[2], args[3]);
System.out.println("Direct message successfully sent to " +
message.getRecipientScreenName());
System.exit(0);
} catch (WeiboException te) {
System.out.println("Failed to send message: " + te.getMessage());
System.exit( -1);
}