You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gets all short codes from Shlink matching the search term "abc".
38
+
39
+
Note (it's not obvious), you can add more query params to an instance of HttpUtility like you can any dictionary by using the .Add() method on the object.
Note (it's not obvious), you can add more query params to an instance of HttpUtility like you can any dictionary by using the .Add() method on the object.
Data returned by Shlink's rest API is usually embedded within one or two properties.
143
+
144
+
Here you can specify the embedded properties as a string array in the order you need to select them to access the data.
145
+
146
+
For example, the "short-urls" endpoint includes the data within the "shortUrls.data" properties.
147
+
Therefore, for this parameter you specify a string array of @("shortUrls", "data").
148
+
149
+
In other words, using this function for the short-urls endpoint results in the below object if there are two pages worth of data returned:
150
+
151
+
Invoke-ShlinkRestMethod -Endpoint 'short-urls'
152
+
153
+
shortUrls
154
+
---------
155
+
@{data=System.Object\[\]; pagination=}
156
+
@{data=System.Object\[\]; pagination=}
114
157
115
158
```yaml
116
-
Type: HttpUtility
159
+
Type: String[]
117
160
Parameter Sets: (All)
118
161
Aliases:
119
162
120
163
Required: False
121
-
Position: 2
164
+
Position: 6
122
165
Default value: None
123
166
Accept pipeline input: False
124
167
Accept wildcard characters: False
125
168
```
126
169
127
-
### -ShlinkApiKey
128
-
{{ Fill ShlinkApiKey Description }}
170
+
### -ShlinkServer
171
+
The URL of your Shlink server (including schema).
172
+
For example "https://example.com".
173
+
It is not required to use this parameter for every use of this function.
174
+
When it is used once for any of the functions in the PSShlink module, its value is retained throughout the life of the PowerShell session and its value is only accessible within the module's scope.
A SecureString object of your Shlink server's API key.
190
+
It is not required to use this parameter for every use of this function.
191
+
When it is used once for any of the functions in the PSShlink module, its value is retained throughout the life of the PowerShell session and its value is only accessible within the module's scope.
144
192
145
193
```yaml
146
-
Type: String
194
+
Type: SecureString
147
195
Parameter Sets: (All)
148
196
Aliases:
149
197
150
198
Required: False
151
-
Position: 6
199
+
Position: 8
152
200
Default value: None
153
201
Accept pipeline input: False
154
202
Accept wildcard characters: False
@@ -159,10 +207,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
0 commit comments