Get BrevoContactSegment - tsubotitsch/Brevo GitHub Wiki

Get-BrevoContactSegment

SYNOPSIS

Retrieves contact segments from the Brevo API.

SYNTAX

Get-BrevoContactSegment [[-limit] <Int32>] [[-offset] <Int32>] [[-sort] <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Get-BrevoContactSegment function retrieves contact segments from the Brevo API. It allows you to specify the number of results per page, the starting index for pagination, and the sort order of the results.

EXAMPLES

EXAMPLE 1

Get-BrevoContactSegment -limit 20 -offset 0 -sort "asc"

Retrieves the first 20 contact segments sorted in ascending order.

EXAMPLE 2

Get-BrevoContactSegment -limit 50 -offset 100

Retrieves 50 contact segments starting from the 101st record, sorted in descending order.

PARAMETERS

-limit

The number of results returned per page. The default is 10, and the maximum is 50.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: 10
Accept pipeline input: False
Accept wildcard characters: False

-offset

The index of the first document in the page (starting with 0). For example, if the limit is 50 and you want to retrieve page 2, then offset=50.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-sort

Sorts the results in the ascending ("asc") or descending ("desc") order of record creation. The default order is descending if this parameter is not specified.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: Desc
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️