Package weibo4j

Examples of weibo4j.DirectMessage


            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);
        }
View Full Code Here

TOP

Related Classes of weibo4j.DirectMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.