Exam4Training

Which method should you use?

You have a third-party API that is secured by using Azure Active Directory (Azure AD).

You need to configure a SharePoint Framework (SPFx) web part to consume the third-party API.

Which method should you use?
A . aadHccpCliencFaccory()
B. ExecuteQuery()
C. ClientConcexc()
D. msGraphCliencFaccory()

Answer: A

Explanation:

The AadHttpClient client object is useful for consuming any REST API. You can use it to consume Microsoft Graph or any other third-party (or first-party) REST API.

To consume any REST API using the AadHttpClient client object, create a new instance of the AadHttpClient type by calling the context.aadHttpClientFactory.getClient() method and providing the URI of the target service.

Reference: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aad-tutorial

Latest MS-600 Dumps Valid Version with 142 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version