authzed-rb icon indicating copy to clipboard operation
authzed-rb copied to clipboard

Add LookupResources example

Open ivanauth opened this issue 3 months ago • 0 comments

Fixes #74

Adds a comprehensive example demonstrating how to use LookupResources with streaming responses.

What's Included

  • Complete working example in examples/v1/lookup_resources.rb
  • Shows how to handle streaming LookupResourcesResponse
  • Demonstrates collecting results into an array
  • Includes examples for multiple permissions (read and write)
  • Follows the same pattern as existing examples in the repo

The example clearly shows how to interact with the stream-based API and collect resource IDs.

ivanauth avatar Nov 13 '25 23:11 ivanauth