Package org.latinoware.geodojo.app.teste

Source Code of org.latinoware.geodojo.app.teste.TesteTwitter4j

package org.latinoware.geodojo.app.teste;

import org.junit.Test;

import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;




public class TesteTwitter4j {

  @Test
  public void send() throws TwitterException
  {
     // The factory instance is re-useable and thread safe.
      Twitter twitter = new TwitterFactory().getInstance("geodojo","latinoware");
      Status status = twitter.updateStatus("Testando o  twitter4j");
      System.out.println("Successfully updated the status to [" + status.getText() + "].");
  }
}
TOP

Related Classes of org.latinoware.geodojo.app.teste.TesteTwitter4j

TOP
Copyright © 2018 www.massapi.com. 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.