#Also, facing issues with the python SDK
1 messages · Page 1 of 1 (latest)
Hi @wanton flame, can you try 'pip install permify' instead
it should work that way, in the mean time i will investigate the bug
@jade blaze Facing issue with authentication too
permify.Configuration(host=self.endpoint, api_key={'ApiKeyAuth': self.token}, api_key_prefix={'ApiKeyAuth': 'Bearer'})
I am using this snippet, but everytime I am getting the ERROR_CODE_MISSING_BEARER_TOKEN error.
Can you please help if there's some issue with the syntax?
@jade blaze Can you please help with the above?
Hi @wanton flame, can you try following to create your api client:
`import permify
class PermifyClient:
def init(self, endpoint, api_token):
client = permify.ApiClient(
configuration=permify.Configuration(host = endpoint),
header_name="Authorization",
header_value=f"Bearer {api_token}")
self.tenancy = permify.TenancyApi(client)
self.schema = permify.SchemaApi(client)
self.data = permify.DataApi(client)
self.permission = permify.PermissionApi(client)`