To get your Twitter access token and id, you first need to login into your Twitter account on developer.twitter.com. After that navigate to the Twitter app dashboard and open the twitter app for which you would like to generate access tokens.
To know more about in details, please refer this article.