- Larry Pettit
- PowerBuilder
- Friday, 12 July 2024 12:26 PM UTC
I generally don't like to display my ignorance, but I'm going to bite the bullet and ask a stupid question.
Following is sample C# code off of Microsoft's website. If I wanted to make this call from PowerBuilder 2022 R3 instead of C#:
- Is it possible?
- Would it be a REST call? External Function? Something else?
- Would I need to write a C# object for PowerBuilder to call?
If somebody had some free time and didn't know what to do, could you please point me in the right direction? It would be very much appreciated. I can just write the whole app in C# but I'd like to know what my options are and what PowerBuilder is capable of.
C# Code:
using Azure;
using Azure.AI.DocumentIntelligence;
string endpoint = "<endpoint>";
string key = "<access-key>";
AzureKeyCredential cred = new AzureKeyCredential(key);
DocumentIntelligenceClient client = new DocumentIntelligenceClient (new Uri(endpoint), cred);
Uri fileUri = new Uri ("<url-of-document-to-analyze>");
AnalyzeDocumentOperation operation = await client.AnalyzeDocumentFromUriAsync(WaitUntil.Completed, "prebuilt-layout", fileUri);
AnalyzeResult result = operation.Value;
THANK YOU!!!!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.