Magidoc

getBuzzSnippetSource
Query

Read or search a bounded range of a snippet's exact saved JavaScript. Access: same as viewing the version, with editor access required for drafts. Errors: inaccessible version or invalid range. For edits, resolve latestVersionId with getBuzzSnippets, search for the affected code, and pass versionId/codeHash to editBuzzSnippetDraft. Offsets count JavaScript string characters (UTF-16). Ranges can be fetched again after context compaction; search starts near the first exact occurrence.

Arguments

#

versionId

ID !
Non-null

search

startOffset

maxChars

Response

#

Returns BuzzSnippetSource !.

Example

#