Hello,
I wrote a function to connect to the Laserfiche cloud repository with which I export files. Until now it worked perfectly with API V1. The export function has been deprecated RestRequest request = new RestRequest{ Method = Method.Get,};
request.AddHeader("Authorization", $"Bearer {sToken}");
....
request = new RestRequest { Method = Method.Head, };
It was replaced by a POST
https://api.eu.laserfiche.com/repository/v2/Repositories/:repositoryId/Entries/:entryId/Export?pageRange=<string>
The problem encountered concerns the creation of the token which works but which is no longer valid for V2 type calls.
Apparently, the scope is missing to be able to use it.
I did a simple test with a GET
https://api.eu.laserfiche.com/repository/v2/Repositories
Response: Error: Forbidden request. Ensure your access token has the correctly configured scope.
If I make the same query using https://api.eu.laserfiche.com/repository/v1/Repositories
it works perfectly.
I don't understand this problem.
Thanks for your help