< Back
Get-TweetTimeline
Post
NAME Get-TweetTimeline
SYNOPSIS
This Function retrieves the Timeline of a Twitter user.
SYNTAX
Get-TweetTimeline [-Username] <String> [-IncludeRetweets] [-IncludeReplies] [[-MaximumTweets] <Int32>] [[-FromId]
<UInt64>] [[-SinceId] <UInt64>] [<CommonParameters>]
DESCRIPTION
This Function retrieves the Timeline of a Twitter user.
PARAMETERS
-Username <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-IncludeRetweets [<SwitchParameter>]
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-IncludeReplies [<SwitchParameter>]
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-MaximumTweets <Int32>
Required? false
Position? 2
Default value 200
Accept pipeline input? false
Accept wildcard characters? false
-FromId <UInt64>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SinceId <UInt64>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Management.Automation.PSCustomObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 10
$TimeLine | Out-Gridview -PassThru
This example stores the retrieved Twitter timeline for user sstranger with a maximum of 10 tweets and pipes the
result
to the Out-GridView cmdlet.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 100
$TimeLine | Sort-Object -Descending | Out-Gridview -PassThru
This example stores the retrieved Twitter timeline for user sstranger with a maximum of 100 tweets,
sorts the result descending on retweet counts and pipes the result to the Out-GridView cmdlet.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 200
$TimeLine += Get-TweetTimeline -UserName "sstranger" -FromId ($TimeLine[-1].id -MaximumTweets) -MaximumTweets 100
This example stores the retrieved Twitter timeline for user sstranger with the maximum allowed 200 tweets
per single request, then makes a second query for the next 100 tweets starting from the last retrieved tweet Id.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 200
$TimeLine += Get-TweetTimeline -UserName "sstranger" -SinceId ($TimeLine[0].id -MaximumTweets) -MaximumTweets 100
This example stores the retrieved Twitter timeline for user sstranger with the maximum allowed 200 tweets
per single request, then makes a second query for the newest tweets since the last tweet.
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Get-UserFollower; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only
partial help.
-- To download and install Help files for the module that includes this cmdlet, use
Update-Help.
alertSet :
description :
examples :
Synopsis :
Get-UserFollower [-UserName] <string> [<CommonParameters>]
ModuleName : MyTwitter
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Get-UserFollower
Category : Function
Component :
Role :
Functionality :
SYNOPSIS
This Function retrieves the Timeline of a Twitter user.
SYNTAX
Get-TweetTimeline [-Username] <String> [-IncludeRetweets] [-IncludeReplies] [[-MaximumTweets] <Int32>] [[-FromId]
<UInt64>] [[-SinceId] <UInt64>] [<CommonParameters>]
DESCRIPTION
This Function retrieves the Timeline of a Twitter user.
PARAMETERS
-Username <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-IncludeRetweets [<SwitchParameter>]
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-IncludeReplies [<SwitchParameter>]
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-MaximumTweets <Int32>
Required? false
Position? 2
Default value 200
Accept pipeline input? false
Accept wildcard characters? false
-FromId <UInt64>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SinceId <UInt64>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Management.Automation.PSCustomObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 10
$TimeLine | Out-Gridview -PassThru
This example stores the retrieved Twitter timeline for user sstranger with a maximum of 10 tweets and pipes the
result
to the Out-GridView cmdlet.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 100
$TimeLine | Sort-Object -Descending | Out-Gridview -PassThru
This example stores the retrieved Twitter timeline for user sstranger with a maximum of 100 tweets,
sorts the result descending on retweet counts and pipes the result to the Out-GridView cmdlet.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 200
$TimeLine += Get-TweetTimeline -UserName "sstranger" -FromId ($TimeLine[-1].id -MaximumTweets) -MaximumTweets 100
This example stores the retrieved Twitter timeline for user sstranger with the maximum allowed 200 tweets
per single request, then makes a second query for the next 100 tweets starting from the last retrieved tweet Id.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>$TimeLine = Get-TweetTimeline -UserName "sstranger" -MaximumTweets 200
$TimeLine += Get-TweetTimeline -UserName "sstranger" -SinceId ($TimeLine[0].id -MaximumTweets) -MaximumTweets 100
This example stores the retrieved Twitter timeline for user sstranger with the maximum allowed 200 tweets
per single request, then makes a second query for the newest tweets since the last tweet.
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Get-UserFollower; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only
partial help.
-- To download and install Help files for the module that includes this cmdlet, use
Update-Help.
alertSet :
description :
examples :
Synopsis :
Get-UserFollower [-UserName] <string> [<CommonParameters>]
ModuleName : MyTwitter
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Get-UserFollower
Category : Function
Component :
Role :
Functionality :