openfga / python-sdk

OpenFGA SDK for Python 3 - https://pypi.org/project/openfga-sdk/
https://openfga.dev
Apache License 2.0
35 stars 14 forks source link

README client should call fga_client instead of api_instance #25

Closed adriantam closed 1 year ago

adriantam commented 1 year ago

Currently, the (README file)[https://github.com/openfga/python-sdk/blob/main/README.md] is incorrect in several places where api_instance is used instead of fga_client.

The sample code for

uses api_instance instead of fga_client. The purpose of this issue is to change all these instances to use fga_client instead.

Ideally, we will also fix the SDK generator so that newly generated python SDKs will have the corresponding changes. This is tracked as https://github.com/openfga/sdk-generator/issues/126. However, if that is difficult to do, simply focusing on the Python SDK side https://github.com/openfga/python-sdk/blob/main/README.md will help us as well.

Harshal662 commented 1 year ago

i can do that