Search-Notion
SYNOPSIS
Performs a search across all data shared with the integration.
SYNTAX
Search-Notion [-Token] <String> [[-Query] <String>] [[-Filter] <PSObject>] [[-Sort] <PSObject>]
[[-PageSize] <String>] [[-StartCursor] <String>] [<CommonParameters>]
DESCRIPTION
The Search-Notion cmdlet performs a search across all data shared with the integration with a query string and then filters and sorts it based on specified settings.
EXAMPLES
Example 1
PS C:\> $SearchFilter = @{
"direction" = "ascending"
"timestamp" = "last_edited_time"
}
PS C:\> Search-Notion -Token "yoursupersecrettokenvalue" -Query "External tasks" -Filter = $SearchFilter
This command searches Notion for the string "External tasks" and filters the data.
PARAMETERS
-Filter
Specifies an object containing the filters you wish to use for the search.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PageSize
Specifies an string containing the page size you want returned from the API. The maximum page size allowed currently is 100.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Query
Specifies a string containing the search terms.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Sort
Specifies an object containing the sorting you wish to use for the search.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-StartCursor
Specifies a string containing the start cursor of the next page you want to retrieve.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Token
Specifies a string containing the integration token value.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
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.