fa0311 / twitter-openapi-typescript

Implementation of Twitter internal API (Twitter graphql API) in TypeScript
https://www.npmjs.com/package/twitter-openapi-typescript
Other
73 stars 11 forks source link

Required parameter "fieldToggles" was null or undefined when calling getUserTweetsAndReplies(). #115

Open chenxhong opened 5 hours ago

chenxhong commented 5 hours ago

When I update to the latest version, when using the method: getUserTweetsAndReplies, an error will be reported: Error [RequiredError]: Required parameter "fieldToggles" was null or undefined when calling getUserTweetsAndReplies(). How to use the latest version? How to pass fieldToggles parameter?

chenxhong commented 5 hours ago

How to do this without using code: response = await client.getTweetApi().api.getUserTweetsAndReplies({ pathQueryId: client.flag.HomeTimeline.queryId, variables: JSON.stringify(client.flag.HomeTimeline.variables), features: JSON.stringify(client.flag.HomeTimeline.features), fieldToggles:'' }); What about passing in the fieldToggles parameter?