Top Banner
So dummy, I am going to configure you to tweet” for me. I am going to set you up as a Hmmm … Can I generate Evil Tweets?
12
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Set Up Your Twitter App!

So dummy, I am going to

configure you to “tweet” for me. I am going to set

you up as a

Hmmm … Can I generate Evil Tweets?

Page 2: Set Up Your Twitter App!

Go this set to register your app:

First, pick a good name this is the name of the

app, not of the bot!

Page 3: Set Up Your Twitter App!

The app behind @MetaphorMagnet

is called:

Also called CONSUMER keys

Page 4: Set Up Your Twitter App!

You will also get private access tokens:

Keep these

Page 5: Set Up Your Twitter App!

Finally, configure the settings for your

app: You want to:

Page 6: Set Up Your Twitter App!

Now, we will access our app via a Java

API for Twitter called:

Page 7: Set Up Your Twitter App!

Now, let’s write some frickin’ Java:

Import the API classes:

Then, we need to Obtain an authorization

URL from Twitter

Page 8: Set Up Your Twitter App!
Page 9: Set Up Your Twitter App!

Here’s the Authorization page, and

here is the pin you receive:

Page 10: Set Up Your Twitter App!

Let’s use our keys to interact with

Twitter, as a good bot should!

Page 11: Set Up Your Twitter App!
Page 12: Set Up Your Twitter App!