I am attempting to use the Laserfiche Cloud API to download a PDF from the repository. I am able to authenticate in via the API using a python script, however when I run the following line of code,
document = requests.get('https://api.laserfiche.com/repository/v1-alpha/Repositories/REPOSITORY ID/Entries/41745/Laserfiche.Repository.Document.edoc', headers = {'Authorization':'Bearer ' + AuthToken}) print('+++++++Get Document JSON Response+++++++') print(document.json()) print('\n') print('+++++++Get Document Response Headers+++++++') print(document.headers)
I get the following error responses:
+++++++Get Document JSON Response+++++++
{'error': {'code': 'UnsupportedApiVersion', 'message': "The HTTP resource that matches the request URI 'http://api.laserfiche.com/repository/v1-alpha/Repositories/REPOSITORY ID/Entries/41745/Laserfiche.Repository.Document.edoc' with API version '1-alpha' does not support HTTP method 'GET'.", 'innerError': None}}
+++++++Get Document Response Headers+++++++
{'Date': 'Fri, 23 Jul 2021 19:10:59 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '304', 'Connection': 'keep-alive', 'Allow': 'POST', 'api-supported-versions': '1-alpha, 1', 'X-RequestId': 'c7de7ffa987040ab9651fa1176c1e07e', 'Strict-Transport-Security': 'max-age=15552000; includeSubdomains', 'X-OperationID': 'ecd5018895b956e54804fb1ed5d08d6a'}
Any help or advice would be appreciated.
Justin