To create a Twitter Developer Account, you need to go to https://developer.twitter.com/en/apply-for-access and apply for access.
Once you’ve clicked the button and signed in with a Twitter account, you’ll have to provide details on what your application will be and how you’ll use it.
Let’s go over each step.
The following examples demonstrate how Twitter developer products can be used to build solutions across a diverse set of use cases. Preview the data that is returned by our endpoints. Listen & analyze. Look, there's a way to get a developer account. The Chinese have found a way to quickly recognize Twitter developer accounts. The method is like this: 1. Select only 'explore the APIs'. Use Google Mail. Indicate that the data will not be displayed or analyzed. It is best to claim that you are a student, only for learning and completing homework. We would like to show you a description here but the site won’t allow us. Twitter integration - The Log in with Twitter flow can grant authorization to use Twitter APIs on your users' behalf. OAuth based - A wealth of client libraries and example code are compatible with the Log in with Twitter API. Browsers - If your users can access a browser, you can integrate with Log in with Twitter.
Choosing the Primary Reason
When choosing the primary reason, select the last one, in the column Other. Since we will host giveaways, none of the available options apply here (maybe the Embedding one could). So we will select Doing something else.
Confirming your Account
After you choose your primary reason, you’ll have to confirm that you are on the correct account and add the Country and also the name of your developer account.
Once you enter the required information at the bottom of the page, just click next. The next step is the most important one.
Intended Use
This is the most important step because we are telling Twitter how we will use their APIs and Data. If they don’t like it, they won’t approve it.
There are several boxes on this page and some of them are not needed.
Here you’ll write what you are going to do with Twitter API. You can enter something like this (feel free to change it as you see fit):
I will use the Twitter API to utilize the integration with the WordPress Plugin: Simple Giveaways. The plugin uses the Twitter API to check if a user follows another user, follow a user and to tweet a message on the Twitter feed. All of this is done by the subscriber of our Giveaway because they need to authorize our Twitter app and also click the buttons to confirm such actions.
After you’ve done that, scroll down a bit and then tick “OFF” the option Are you planning to analyze Twitter data? We don’t analyze such data inside of the plugin. But if you’ll analyze the data, then explain how and why.
In the second box on this image, the one that asks “Will your app use Tweet, Retweet, like, follow or Direct Message functionality?”, describe how you will use those features. You can use something like this:
Our App will integrate with the WordPress Plugin: Simple Giveaways. The actions provided by this plugin enable our subscribers to Tweet a message about the Giveaway with the option to change the message. They will also be able to follow an account or check if they already follow the account. Each action must be confirmed by the Subscriber and it won’t be done without their knowledge.
Twitter Developer Account Suspended
After that, we have another box to fill out.
At the moment of writing this, we don’t display any tweets but we do plan to have an action where people can read a tweet so you can decide to tick this off or on. If you decide to leave it ON, then you can use something like this.
The Tweets could be display on the site itself and also using the WordPress Plugin: Simple Giveaways so subscribers can read a Tweet without going off our site. Within Giveaways, if they decide to read the tweet, they can confirm that they’ve read it and receive an extra point (if such is provided).
After that, you can decide if you’re going to make such data available also to your Government.
The last thing is to Review everything that you’ve entered and configured. Once you’re sure everything is all right, you will have to agree to Twitter terms and you’ll be put into the queue.
Once approved, you’ll get an email from Twitter about your status. In case some of the data is confusing, you’ll be contacted by the their team that approves developer accounts. Then, you’ll be able to better explain to them what you’ve meant.
To perform actions on behalf of another user, you'll need to obtain their access tokens. Access tokens specify the Twitter account the request is made on behalf of, so for you to obtain these they will need to first grant you access. These tokens do not expire but can be revoked by the user at any time.
Twitter allows you to obtain user access tokens through the 3-legged OAuth flow, which allows your application to obtain an access token and access token secret by redirecting a user to Twitter and having them authorize your application. This flow is almost identical to the flow described in implementing Log in with Twitter, with two exceptions:
- The GET oauth/authorize endpoint is used instead of GET oauth/authenticate.
- The user will always be prompted to authorize access to your application, even if access was previously granted.
Before you get started, you will need to check your application's permissions and know the consumer keys and callback URL. If you don't have a callback URL or publicly accessible UI, consider using PIN-based authorization, which is intended for applications that cannot access or embed a web browser in order to redirect the user after authorization.
Twitter Developer Account Costs
The possible states for the 3-legged sign in interaction are illustrated in the following flowchart: