Because my developer account only supports V2 API, when I call "twitterClient.uploadMedia ()", I will be prompted that I don't have permission to use this API. So I can't get the mediaId normally. I asked the relevant staff in the community, and they said that "the create tweet in v2 to post the tweet and attach the image" could be used to realize it. I studied for a day, but I couldn't find the relevant method in the project ... My English is poor, and I don't know if I misunderstood it. I'm really sorry to disturb you.
Because my developer account only supports V2 API, when I call "twitterClient.uploadMedia ()", I will be prompted that I don't have permission to use this API. So I can't get the mediaId normally. I asked the relevant staff in the community, and they said that "the create tweet in v2 to post the tweet and attach the image" could be used to realize it. I studied for a day, but I couldn't find the relevant method in the project ... My English is poor, and I don't know if I misunderstood it. I'm really sorry to disturb you.