appBskyFeedSearchPostsV2 function
Future<XRPCResponse<FeedSearchPostsV2Output> >
appBskyFeedSearchPostsV2({
- String? cursor,
- int? limit,
- String? query,
- FeedSearchPostsV2Sort? sort,
- List<
String> ? authors, - List<
String> ? mentions, - List<
String> ? domains, - List<
String> ? urls, - List<
AtUri> ? embeddedAtUris, - List<
String> ? hashtags, - List<
String> ? excludeAuthors, - List<
String> ? excludeMentions, - List<
String> ? excludeDomains, - List<
String> ? excludeUrls, - List<
AtUri> ? excludeEmbeddedAtUris, - List<
String> ? excludeHashtags, - String? since,
- String? until,
- bool? allTime,
- List<
String> ? languages, - List<
String> ? excludeLanguages, - bool? hasMedia,
- bool? hasVideo,
- AtUri? replyParentUri,
- AtUri? threadRootUri,
- bool? excludeReplies,
- bool? repliesOnly,
- bool? following,
- FeedSearchPostsV2QueryLanguage? queryLanguage,
- required ServiceContext $ctx,
- String? $service,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Find posts matching a search query or filters, returning search hits for matching post records.
Implementation
Future<XRPCResponse<FeedSearchPostsV2Output>> appBskyFeedSearchPostsV2({
String? cursor,
int? limit,
String? query,
FeedSearchPostsV2Sort? sort,
List<String>? authors,
List<String>? mentions,
List<String>? domains,
List<String>? urls,
List<AtUri>? embeddedAtUris,
List<String>? hashtags,
List<String>? excludeAuthors,
List<String>? excludeMentions,
List<String>? excludeDomains,
List<String>? excludeUrls,
List<AtUri>? excludeEmbeddedAtUris,
List<String>? excludeHashtags,
String? since,
String? until,
bool? allTime,
List<String>? languages,
List<String>? excludeLanguages,
bool? hasMedia,
bool? hasVideo,
AtUri? replyParentUri,
AtUri? threadRootUri,
bool? excludeReplies,
bool? repliesOnly,
bool? following,
FeedSearchPostsV2QueryLanguage? queryLanguage,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.appBskyFeedSearchPostsV2,
service: $service,
headers: $headers,
parameters: {
...?$unknown,
if (cursor != null) 'cursor': cursor,
if (limit != null) 'limit': limit,
if (query != null) 'query': query,
if (sort != null) 'sort': sort.toJson(),
if (authors != null) 'authors': authors,
if (mentions != null) 'mentions': mentions,
if (domains != null) 'domains': domains,
if (urls != null) 'urls': urls,
if (embeddedAtUris != null)
'embeddedAtUris': embeddedAtUris.map((e) => e.toString()).toList(),
if (hashtags != null) 'hashtags': hashtags,
if (excludeAuthors != null) 'excludeAuthors': excludeAuthors,
if (excludeMentions != null) 'excludeMentions': excludeMentions,
if (excludeDomains != null) 'excludeDomains': excludeDomains,
if (excludeUrls != null) 'excludeUrls': excludeUrls,
if (excludeEmbeddedAtUris != null)
'excludeEmbeddedAtUris': excludeEmbeddedAtUris
.map((e) => e.toString())
.toList(),
if (excludeHashtags != null) 'excludeHashtags': excludeHashtags,
if (since != null) 'since': since,
if (until != null) 'until': until,
if (allTime != null) 'allTime': allTime,
if (languages != null) 'languages': languages,
if (excludeLanguages != null) 'excludeLanguages': excludeLanguages,
if (hasMedia != null) 'hasMedia': hasMedia,
if (hasVideo != null) 'hasVideo': hasVideo,
if (replyParentUri != null) 'replyParentUri': replyParentUri.toString(),
if (threadRootUri != null) 'threadRootUri': threadRootUri.toString(),
if (excludeReplies != null) 'excludeReplies': excludeReplies,
if (repliesOnly != null) 'repliesOnly': repliesOnly,
if (following != null) 'following': following,
if (queryLanguage != null) 'queryLanguage': queryLanguage.toJson(),
},
to: const FeedSearchPostsV2OutputConverter().fromJson,
);