panoratech / python-sdk

0 stars 2 forks source link

Could not find a matching version of package panora-sdk #11

Open danielemaasit opened 1 month ago

danielemaasit commented 1 month ago
Screenshot 2024-09-13 214024

@naelob It appears panora-sdk is not available on PyPI

naelob commented 1 month ago

@danielemaasit You should use poetry !

danielemaasit commented 1 month ago
Screenshot 2024-09-14 204440

@naelob See message in screenshot

danielemaasit commented 1 month ago

@naelob See Error below


import os
from panora_sdk import Panora

panora = Panora(
  api_key=os.getenv("xx", ""),
)

res = panora.connections.list()

res = panora.ecommerce.products.list(x_connection_token="xxx")

print(res)

Errors:

Two errors

  1. Connections object has no method list

  2. panora_sdk.models.sdkerror.SDKError: API error occurred: Status 401 {"message":"Unauthorized","statusCode":401}

naelob commented 1 month ago

did you run your api locally ?

naelob commented 1 month ago

the unauthorized is because you must have both api key and connection token