PowerShell Gets Twitter Tweets Only 140 Characters

Asked 2 years ago, Updated 2 years ago, 68 views

You are trying to retrieve tweet information for a specific user using an API called MyTwitter.English tweets can contain up to 280 characters, but only 140 characters.Is it possible to retrieve the entire body of the tweet?
The code currently running is as follows:

#application information, token information
$ApiKey="************"
$ApiSecret="************"
$AccessToken="************"
$AccessTokenSecret="************"

New-MyTwitterConfiguration-ApiKey$ApiKey-ApiSecret$ApiSecret-AccessToken$AccessTokenSecret$AccessTokenSecret
Get-TweetTimeline-Username '****' - IncludeRetweets false

twitter powershell

2022-09-30 15:44

1 Answers

The text property of the Tweet object has historically been rounded to 140 characters.As you can see from the Extended Tweets, the extended_tweet property contains up to 280 characters.


2022-09-30 15:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.