How to set up
Go to X Developer Console to get API Key (Consumer Key), API Secret (Consumer Secret), Access Token, and Access Token Secret.
Select your app
Click on your app to open its settings. If you don’t have an app yet, click Create App to create one.
Get Consumer Key and Consumer Secret
Under OAuth 1.0 Keys, click Regenerate to get your API Key (also known as Consumer Key) and API Secret (also known as Consumer Secret).