< Back
Get-jnRedditPost
Post
NAME Get-jnRedditPost
SYNOPSIS
Get posts from Reddit
SYNTAX
Get-jnRedditPost [-Name] <String> [[-Sort] <String>] [[-Uri] <String>] [[-MaxResults] <Int32>] [<CommonParameters>]
DESCRIPTION
Get posts from Reddit
PARAMETERS
-Name <String>
Subreddit name
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Sort <String>
Sorting method:
Hot
New
Rising
Controversial
Top
Required? false
Position? 2
Default value Top
Accept pipeline input? false
Accept wildcard characters? false
-Uri <String>
Uri to query, queries https://api.reddit.com by default
Required? false
Position? 3
Default value https://api.reddit.com
Accept pipeline input? false
Accept wildcard characters? false
-MaxResults <Int32>
Maximum number of items to return. Defaults to 25
Required? false
Position? 4
Default value 25
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-jnRedditPost sysadmin
# Gets posts from reddit.com/r/sysadmin in JSON format
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-jnRedditPost -Subreddit sysadmin -Sort New -MaxResults 5
# Get Redit posts...
# From /r/sysadmin...
# Sorted by new posts...
# Maximum of five items...
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$subreddits = "sysadmin", "devops"; $subreddits | Get-jnRedditPost -Sort New -MaxResults 20
# Iterates each of the subreddits in the array...
# Sorted by new posts...
# Maximum items returns is 20...
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-jnRedditPost -Name SomeUserName -QueryType User -MaxResults 4 -Verbose
# Finds posts authored by the specified name
# Returns only four items...
# Outputs verbose information...
RELATED LINKS
http://
https://
SYNOPSIS
Get posts from Reddit
SYNTAX
Get-jnRedditPost [-Name] <String> [[-Sort] <String>] [[-Uri] <String>] [[-MaxResults] <Int32>] [<CommonParameters>]
DESCRIPTION
Get posts from Reddit
PARAMETERS
-Name <String>
Subreddit name
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Sort <String>
Sorting method:
Hot
New
Rising
Controversial
Top
Required? false
Position? 2
Default value Top
Accept pipeline input? false
Accept wildcard characters? false
-Uri <String>
Uri to query, queries https://api.reddit.com by default
Required? false
Position? 3
Default value https://api.reddit.com
Accept pipeline input? false
Accept wildcard characters? false
-MaxResults <Int32>
Maximum number of items to return. Defaults to 25
Required? false
Position? 4
Default value 25
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-jnRedditPost sysadmin
# Gets posts from reddit.com/r/sysadmin in JSON format
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-jnRedditPost -Subreddit sysadmin -Sort New -MaxResults 5
# Get Redit posts...
# From /r/sysadmin...
# Sorted by new posts...
# Maximum of five items...
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$subreddits = "sysadmin", "devops"; $subreddits | Get-jnRedditPost -Sort New -MaxResults 20
# Iterates each of the subreddits in the array...
# Sorted by new posts...
# Maximum items returns is 20...
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-jnRedditPost -Name SomeUserName -QueryType User -MaxResults 4 -Verbose
# Finds posts authored by the specified name
# Returns only four items...
# Outputs verbose information...
RELATED LINKS
http://
https://