We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40af4e7 commit 5d6ad37Copy full SHA for 5d6ad37
twitter-openapi-typescript/src/apis/postApi.ts
@@ -6,7 +6,7 @@ import { error } from 'console';
6
7
type PostCreateTweetParam = {
8
tweetText: string;
9
- media_ids?: string[];
+ mediaIds?: string[];
10
extraParam?: { [key: string]: any };
11
};
12
@@ -54,7 +54,7 @@ export class PostApiUtils {
54
const features = i.PostCreateTweetRequestFeaturesFromJSON(this.flag[queryId]['features']);
55
const variables = i.PostCreateTweetRequestVariablesFromJSON(this.flag[queryId]['variables']);
56
variables.media.mediaEntities =
57
- param.media_ids?.map((mediaId) => ({
+ param.mediaIds?.map((mediaId) => ({
58
mediaId: mediaId,
59
taggedUsers: [],
60
})) ?? [];
0 commit comments