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
{{ message }}
This repository was archived by the owner on Dec 30, 2021. It is now read-only.
|`sort`| optional |`viral`\|`top`\|`time`\|`rising` (only available with user section). Defaults to viral |
206
+
|`page`| optional |`number` - the data paging number |
207
+
|`window`| optional | Change the date range of the request if the section is `top`. Accepted values are `day`\|`week`\|`month`\|`year`\|`all`. Defaults to `day`|
208
+
|`showViral`| optional |`true`\|`false` - Show or hide viral images from the `user` section. Defaults to `true`|
209
+
|`mature`| optional |`true`\|`false` - Show or hide mature (nsfw) images in the response section. Defaults to `false`. NOTE: This parameter is only required if un-authed. The response for authed users will respect their account setting |
210
+
|`album_previews`| optional |`true`\|`false` - Include image metadata for gallery posts which are albums |
211
+
212
+
### Get subreddit gallery images
213
+
214
+
```ts
215
+
client.getSubredditGallery({
216
+
subreddit: 'wallstreetbets',
217
+
sort: 'time',
218
+
});
219
+
```
220
+
221
+
`getSubredditGallery()` accepts an object of type `SubredditGalleryOptions`. The follow options are available:
|`sort`| optional |`time`\|`top` - defaults to time |
227
+
|`page`| optional |`number` - the data paging number |
228
+
|`window`| optional | Change the date range of the request if the section is `top`. Accepted values are `day`\|`week`\|`month`\|`year`\|`all`. Defaults to `week`|
0 commit comments