Which object should you use to call the API?
You have a custom API that is secured by using Azure Active Directory (Azure AD). You need to call the API from within a SharePoint Framework (SPFx) web part.
Which object should you use to call the API?
A . AadHttpClient
B. MSGraphClient
C. SPMttpCHent
D. XMLHttpRequest
Answer: B
Explanation:
By using the AadHttpClient, you can easily connect to APIs secured by using Azure AD without having to implement the OAuth flow yourself.
Reference: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient
Latest MS-600 Practice Questions with 142 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments