Tweeting Messages with Processing
Processing doesn’t have Twitter support, but in Processing programs we have direct access to Java libraries, and you can find several good Twitter libraries for Java. One of them is Twitter4J.[97] We’ll use it because it’s very mature and has excellent OAuth support.
Download Twitter4J from its website[98] and unpack it to a temporary folder. Depending on the version you’ve downloaded, you’ll find a file named twitter4j-core-x.y.z.jar or twitter4j-core-x.y.z-SNAPSHOT.jar in the folder. Open the Processing IDE, create a new sketch, and then drag and drop the jar file to the IDE. (The jar file will automatically be copied to a local folder named code.) That’s all you have to do to give your application access ...
Get Arduino: A Quick-Start Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.