Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion twitter-openapi-typescript/src/apis/defaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class DefaultApiUtils {
const apiFn: typeof param.apiFn = param.apiFn.bind(this.api);
const response = await apiFn({
queryId: this.flag[param.key]['queryId'],
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param }),
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param.param }),
features: JSON.stringify(this.flag[param.key]['features']),
});
const data = param.convertFn(await response.value());
Expand Down
2 changes: 1 addition & 1 deletion twitter-openapi-typescript/src/apis/tweetApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class TweetApiUtils {
const apiFn: typeof param.apiFn = param.apiFn.bind(this.api);
const response = await apiFn({
queryId: this.flag[param.key]['queryId'],
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param }),
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param.param }),
features: JSON.stringify(this.flag[param.key]['features']),
});
const instruction = param.convertFn(await response.value());
Expand Down
4 changes: 2 additions & 2 deletions twitter-openapi-typescript/src/apis/userApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class UserApiUtils {
const apiFn: typeof param.apiFn = param.apiFn.bind(this.api);
const response = await apiFn({
queryId: this.flag[param.key]['queryId'],
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param }),
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param.param }),
features: JSON.stringify(this.flag[param.key]['features']),
});
const user = param.convertFn(await response.value());
Expand All @@ -33,7 +33,7 @@ export class UserApiUtils {

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.

...param.extraParam,
};
const response = this.request({
Expand Down
2 changes: 1 addition & 1 deletion twitter-openapi-typescript/src/apis/userListApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class UserListApiUtils {
const apiFn: typeof param.apiFn = param.apiFn.bind(this.api);
const response = await apiFn({
queryId: this.flag[param.key]['queryId'],
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param }),
variables: JSON.stringify({ ...this.flag[param.key]['variables'], ...param.param }),
features: JSON.stringify(this.flag[param.key]['features']),
});
const instruction = param.convertFn(await response.value());
Expand Down