Skip to content

docs: add snippets for Access Manager categories - #133

Merged
techwritermat merged 1 commit into
masterfrom
docs-snippets
Oct 26, 2026
Merged

techwritermat merged 1 commit into
masterfrom
docs-snippets

Conversation

@techwritermat

Copy link
Copy Markdown
Contributor

Summary

Adds docs snippets for the Access Manager category permissions (let a token list all channel metadata or all uuid metadata, get only, no resources needed).

File: PubNubUnity/Assets/Snippets/AccessManager/AccessManagerSample.cs

Snippet marker Method Content
grant_token_categories GrantTokenCategories GrantToken().Categories(new PNTokenCategories { ... }) with Get = true for channels and uuids
parse_token_categories ParseTokenCategories ParseToken then reads Categories.Channels.Get and Categories.Uuids.Get

Both follow the existing marker style (// snippet.name ... // snippet.end), snake_case names, and sit next to the existing grant and parse token snippets. The grant snippet mirrors the one in the C# SDK repo and keeps the server-side-only warning used by the other grant snippets.

How verified

  • Compiled the whole AccessManagerSample.cs with dotnet build (.NET SDK 9, C# 9.0) against the bundled PubNubUnity/Assets/PubNub/Runtime/Plugins/PubnubApiUnity.dll, with a stub for UnityEngine.Debug and PubnubUnityUtils. 0 errors, 0 warnings.
  • Not run live, no keyset available.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@jakub-grzesiowski jakub-grzesiowski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jakub-grzesiowski jakub-grzesiowski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@parfeon parfeon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@techwritermat
techwritermat merged commit 81a307b into master Oct 26, 2026
5 checks passed
@techwritermat
techwritermat deleted the docs-snippets branch October 26, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants