Skip to content

Conversation

@thecodrr
Copy link
Contributor

Currently, twitter-openapi-typescript constantly falls back to using the default values for all parameters no matter what you pass. The result is that you always get data about Elon Musk. This PR fixes that.

async getUserByScreenName(param: getUserByScreenNameParam): Promise<UserApiUtilsResponse> {
const args = {
screenName: param.screenName,
screen_name: param.screenName,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screenName is not recognized by Twitter. I looked in the request variables and apparently Twitter uses screen_name instead.

@fa0311
Copy link
Owner

fa0311 commented Jun 14, 2023

Thank you! That was my typo!

@fa0311 fa0311 merged commit 00fd846 into fa0311:master Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants