The README says that I can create an API client in the following way:
# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
pdf_api = asposepdfcloud.PdfApi('MY_CLIENT_ID', 'MY_CLIENT_SECRET')
file_name = 'PdfWithAnnotations.pdf'
page_number = 2
response = pdf_api.get_page_annotations(file_name, page_number, folder=temp_folder)
but the PdfApi has the following init:
class PdfApi(object):
def __init__(self, api_client=None):
...
I tried passing in the ApiClient then, but the ApiClient takes an app_key and app_sid, which I haven't been able to find on the Aspose website after registering and creating an application. I tried using my client ID and client secret for these arguments, respectively, but I get an invalid client error, so I suspect that I didn't create the client correctly.
If you look into ApiClient and how it makes requests you'll see that app_key is the client secret and app_sid is the client ID. This is really confusing and should be fixed.
The README says that I can create an API client in the following way:
but the
PdfApi
has the following init:I tried passing in the
ApiClient
then, but theApiClient
takes anapp_key
andapp_sid
, which I haven't been able to find on the Aspose website after registering and creating an application. I tried using my client ID and client secret for these arguments, respectively, but I get an invalid client error, so I suspect that I didn't create the client correctly.Any suggestions on how to proceed?