Setting up a new app with Twitter - francisli/processing-restclient GitHub Wiki

Although many Twitter API resources are accessible without authorization, you will be limited in the number of times that you can access those resources- 150 times/hour, shared amongst all un-authorized apps coming from the same IP address. Authorized apps can access resources 350 times/hour per authorized user of your app, independent of your IP address.

  1. To set up a Processing sketch to be an authorized app, go to http://dev.twitter.com/ and sign in with your Twitter account (you will need to register if you don’t have a Twitter account).
  2. Then, in the upper-right corner in a drop-down menu under your account name, select My Applications.
  3. Click on the Create a new application button.
  4. Fill in a Name and Description for your app, and a Website URL (your personal website URL, or a placeholder). You can leave the Callback URL box blank. Check the Yes, I agree box under the terms and conditions, fill in the CAPTCHA, and submit the form by clicking on the Create your Twitter application button.
  5. If successful, you should now be looking at the Details tab of your application profile.
  6. Scroll down to OAuth settings, and take note of your Consumer key and Consumer secret. These data uniquely identify your application when connecting to the Twitter API.
  7. By default, your Access level is set to Read-only, so if you want to post status updates or perform other actions on behalf of a user, you must click over to the Settings tab, scroll down to Application type, choose the Read and Write access level, then scroll down and click on Update this Twitter application’s settings.
  8. Return to the Details tab, scroll down to Your access token, then click on Create my access token. Take note of your new Access token and Access token secret. These data uniquely identify your account when connecting to the Twitter API.
  9. That’s it! Now that you have your application Consumer key and Consumer secret and have generated an Access token and Access token secret for your account, you can enter these data into the HTTP library HttpClient class to authorize your requests to the Twitter API.
⚠️ **GitHub.com Fallback** ⚠️